multimodalart HF Staff commited on
Commit
da164d4
·
verified ·
1 Parent(s): fe18757

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors"
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=8,
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=8,
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(