Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,10 +64,10 @@ pipe.fuse_lora(adapter_names=["fast"])
|
|
| 64 |
pipe.fuse_lora(adapter_names=["fusion"])
|
| 65 |
pipe.unload_lora_weights()
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
|
| 73 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
|
| 64 |
pipe.fuse_lora(adapter_names=["fusion"])
|
| 65 |
pipe.unload_lora_weights()
|
| 66 |
|
| 67 |
+
pipe.transformer.__class__ = QwenImageTransformer2DModel
|
| 68 |
+
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 69 |
|
| 70 |
+
optimize_pipeline_(pipe, image=[Image.new("RGB", (1024, 1024)), Image.new("RGB", (1024, 1024))], prompt="prompt")
|
| 71 |
|
| 72 |
|
| 73 |
MAX_SEED = np.iinfo(np.int32).max
|