Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,11 +29,13 @@ pipe = QwenImageEditPlusPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509",
|
|
| 29 |
torch_dtype=dtype,
|
| 30 |
device_map='cuda'),torch_dtype=dtype).to(device)
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
pipe.unload_lora_weights()
|
| 38 |
|
| 39 |
pipe.transformer.__class__ = QwenImageTransformer2DModel
|
|
|
|
| 29 |
torch_dtype=dtype,
|
| 30 |
device_map='cuda'),torch_dtype=dtype).to(device)
|
| 31 |
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
pipe.load_lora_weights("rsshekhawat/Qwen-Edit-3DChibi-LoRA",
|
| 35 |
+
weight_name="qwen_3d_chibi_lora_v1_000000820.safetensors",
|
| 36 |
+
adapter_name="chibi")
|
| 37 |
+
pipe.set_adapters(["chibi"], adapter_weights=[1.])
|
| 38 |
+
pipe.fuse_lora(adapter_names=["chibi"], lora_scale=1.0)
|
| 39 |
pipe.unload_lora_weights()
|
| 40 |
|
| 41 |
pipe.transformer.__class__ = QwenImageTransformer2DModel
|