Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,16 +49,16 @@ pipe.set_adapters(["light_migration"], adapter_weights=[1.])
|
|
| 49 |
pipe.fuse_lora(adapter_names=["light_migration"], lora_scale=1.25)
|
| 50 |
pipe.unload_lora_weights()
|
| 51 |
|
| 52 |
-
spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/Qwen-Image", variant="fa3")
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
MAX_SEED = np.iinfo(np.int32).max
|
| 64 |
|
|
|
|
| 49 |
pipe.fuse_lora(adapter_names=["light_migration"], lora_scale=1.25)
|
| 50 |
pipe.unload_lora_weights()
|
| 51 |
|
| 52 |
+
#spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/Qwen-Image", variant="fa3")
|
| 53 |
|
| 54 |
+
pipe.transformer.__class__ = QwenImageTransformer2DModel
|
| 55 |
+
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 56 |
|
| 57 |
+
optimize_pipeline_(
|
| 58 |
+
pipe,
|
| 59 |
+
image=[Image.new("RGB", (1024, 1024)), Image.new("RGB", (1024, 1024))],
|
| 60 |
+
prompt="prompt"
|
| 61 |
+
)
|
| 62 |
|
| 63 |
MAX_SEED = np.iinfo(np.int32).max
|
| 64 |
|