Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
44d2484
1
Parent(s):
01a11d2
delete
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_ret
|
|
27 |
print('Loading and fusing lora, please wait...')
|
28 |
lora_path = hf_hub_download("gokaygokay/Flux-Game-Assets-LoRA-v2", "game_asst.safetensors")
|
29 |
pipe.load_lora_weights(lora_path)
|
30 |
-
pipe.fuse_lora(lora_scale=
|
31 |
pipe.unload_lora_weights()
|
32 |
pipe.transformer.to(device, dtype=torch.bfloat16)
|
33 |
|
@@ -50,9 +50,9 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidan
|
|
50 |
yield img, seed
|
51 |
|
52 |
examples = [
|
53 |
-
"a
|
54 |
-
"
|
55 |
-
"an anime
|
56 |
]
|
57 |
|
58 |
css="""
|
|
|
27 |
print('Loading and fusing lora, please wait...')
|
28 |
lora_path = hf_hub_download("gokaygokay/Flux-Game-Assets-LoRA-v2", "game_asst.safetensors")
|
29 |
pipe.load_lora_weights(lora_path)
|
30 |
+
pipe.fuse_lora(lora_scale=0.125)
|
31 |
pipe.unload_lora_weights()
|
32 |
pipe.transformer.to(device, dtype=torch.bfloat16)
|
33 |
|
|
|
50 |
yield img, seed
|
51 |
|
52 |
examples = [
|
53 |
+
"wbgmsst, a cat, white background",
|
54 |
+
"wbgmsst, a warrior, white background",
|
55 |
+
"wbgmsst, an anime girl, white background",
|
56 |
]
|
57 |
|
58 |
css="""
|