Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -238,9 +238,9 @@ pipe = QwenImageEditPlusPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2511",
|
|
| 238 |
scheduler=scheduler,
|
| 239 |
torch_dtype=dtype).to(device)
|
| 240 |
pipe.load_lora_weights(
|
| 241 |
-
"lightx2v/Qwen-Image-Lightning",
|
| 242 |
-
weight_name="Qwen-Image-Edit-
|
| 243 |
-
|
| 244 |
pipe.fuse_lora()
|
| 245 |
|
| 246 |
# # Apply the same optimizations from the first version
|
|
@@ -267,7 +267,7 @@ def infer(
|
|
| 267 |
seed=42,
|
| 268 |
randomize_seed=False,
|
| 269 |
true_guidance_scale=1.0,
|
| 270 |
-
num_inference_steps=
|
| 271 |
height=None,
|
| 272 |
width=None,
|
| 273 |
rewrite_prompt=True,
|
|
@@ -422,7 +422,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 422 |
minimum=1,
|
| 423 |
maximum=40,
|
| 424 |
step=1,
|
| 425 |
-
value=
|
| 426 |
)
|
| 427 |
|
| 428 |
height = gr.Slider(
|
|
|
|
| 238 |
scheduler=scheduler,
|
| 239 |
torch_dtype=dtype).to(device)
|
| 240 |
pipe.load_lora_weights(
|
| 241 |
+
"lightx2v/Qwen-Image-Edit-2511-Lightning",
|
| 242 |
+
weight_name="Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors"
|
| 243 |
+
)
|
| 244 |
pipe.fuse_lora()
|
| 245 |
|
| 246 |
# # Apply the same optimizations from the first version
|
|
|
|
| 267 |
seed=42,
|
| 268 |
randomize_seed=False,
|
| 269 |
true_guidance_scale=1.0,
|
| 270 |
+
num_inference_steps=4,
|
| 271 |
height=None,
|
| 272 |
width=None,
|
| 273 |
rewrite_prompt=True,
|
|
|
|
| 422 |
minimum=1,
|
| 423 |
maximum=40,
|
| 424 |
step=1,
|
| 425 |
+
value=4,
|
| 426 |
)
|
| 427 |
|
| 428 |
height = gr.Slider(
|