Views
No views yet
pip install git+https://github.com/huggingface/diffusersqwen-2511_general_edit_lora_v1.safetensors.1import torch
2from PIL import Image
3from diffusers import QwenImageEditPlusPipeline
4
5model_id = "Qwen/Qwen-Image-Edit-2511"
6lora_id = "FractalAIResearch/Kalaido-qwenedit-lora"
7
8pipe = QwenImageEditPlusPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
9pipe.load_lora_weights(
10 lora_id,
11 weight_name="qwen-2511_general_edit_lora_v1.safetensors",
12 adapter_name="kalaido",
13)
14pipe.set_adapters(["kalaido"], [1.0])
15pipe.to("cuda")
16
17
18image = Image.open("input.png").convert("RGB")
19prompt = "Your edit instruction here."
20negative_prompt = " "
21
22out = pipe(
23 image=image,
24 prompt=prompt,
25 negative_prompt=negative_prompt,
26 num_inference_steps=40,
27 true_cfg_scale=4.0,
28 guidance_scale=1.0,
29 generator=torch.Generator(device="cuda").manual_seed(42),
30).images[0]
31
32out.save("edited.png")| Task | GPT-4o Image | Qwen Image Edit | Google Nano Banana Pro | GPT-5.1 | FLUX.1 Kontext | Kalaido-qwenedit-lora | Kalaido-edit |
|---|---|---|---|---|---|---|---|
| Addition | 4.65 | 4.61 | 4.70 | 4.70 | 4.08 | 4.65 | 4.71 |
| Remove | 3.81 | 4.39 | 4.69 | 4.89 | 3.23 | 4.50 | 4.72 |
| Replace | 4.49 | 4.70 | 4.55 | 4.83 | 4.42 | 4.70 | 4.77 |
| Attribute alter | 4.26 | 4.62 | 4.70 | 4.66 | 3.96 | 4.64 | 4.71 |
| Motion change | 4.76 | 4.82 | 4.83 | 4.92 | 4.54 | 4.80 | 4.92 |
| Style transfer | 4.75 | 4.77 | 4.87 | 4.91 | 4.59 | 4.73 | 4.84 |
| Background change | 4.62 | 4.54 | 4.50 | 4.90 | 4.15 | 4.53 | 4.68 |
| Object extraction | 2.96 | 4.19 | 3.57 | 2.91 | 2.27 | 4.21 | 4.40 |
| Hybrid edit | 4.54 | 4.03 | 3.77 | 4.71 | 3.42 | 4.37 | 4.64 |
| Average score | 4.32 | 4.52 | 4.46 | 4.60 | 3.85 | 4.57 | 4.71 |
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|
![]() Input
|
![]() Qwen-Image-Edit-2511 (baseline)
|
![]() Kalaido-qwenedit-lora
|