Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ pipe = QwenImageEditPlusPipeline.from_pretrained(
|
|
| 59 |
|
| 60 |
pipe.load_lora_weights(
|
| 61 |
"lightx2v/Qwen-Image-Lightning",
|
| 62 |
-
weight_name="Qwen-Image-Lightning-8steps-V2.0.safetensors",
|
| 63 |
adapter_name="fast"
|
| 64 |
)
|
| 65 |
|
|
@@ -69,8 +69,9 @@ pipe.load_lora_weights(
|
|
| 69 |
adapter_name="angles"
|
| 70 |
)
|
| 71 |
|
| 72 |
-
pipe.set_adapters(["angles"
|
| 73 |
pipe.fuse_lora(adapter_names=["angles"], lora_scale=1.)
|
|
|
|
| 74 |
pipe.fuse_lora(adapter_names=["fast"], lora_scale=1.)
|
| 75 |
pipe.unload_lora_weights()
|
| 76 |
|
|
|
|
| 59 |
|
| 60 |
pipe.load_lora_weights(
|
| 61 |
"lightx2v/Qwen-Image-Lightning",
|
| 62 |
+
weight_name="Qwen-Image-Lightning-8steps-V2.0-bf16.safetensors",
|
| 63 |
adapter_name="fast"
|
| 64 |
)
|
| 65 |
|
|
|
|
| 69 |
adapter_name="angles"
|
| 70 |
)
|
| 71 |
|
| 72 |
+
pipe.set_adapters(["angles"], adapter_weights=[1.])
|
| 73 |
pipe.fuse_lora(adapter_names=["angles"], lora_scale=1.)
|
| 74 |
+
pipe.set_adapters(["fast"], adapter_weights=[1.])
|
| 75 |
pipe.fuse_lora(adapter_names=["fast"], lora_scale=1.)
|
| 76 |
pipe.unload_lora_weights()
|
| 77 |
|