Skip to content

Commit 4fe851a

Browse files
committed
up
1 parent b45ca9e commit 4fe851a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/source/en/api/pipelines/qwenimage.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,26 @@ The `guidance_scale` parameter in the pipeline is there to support future guidan
9999

100100
## Multi-image reference with QwenImageEditPlusPipeline
101101

102-
TODO
102+
With [`QwenImageEditPlusPipeline`], one can provide multiple images as input reference.
103+
104+
```
105+
import torch
106+
from PIL import Image
107+
from diffusers import QwenImageEditPlusPipeline
108+
from diffusers.utils import load_image
109+
110+
pipe = QwenImageEditPlusPipeline.from_pretrained(
111+
"Qwen/Qwen-Image-Edit-2509", torch_dtype=torch.bfloat16
112+
).to("cuda")
113+
114+
image_1 = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/grumpy.jpg")
115+
image_2 = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/peng.png")
116+
image = pipe(
117+
image=[image_1, image_2],
118+
prompt="put the penguin and the cat at a game show called "Qwen Edit Plus Games"",
119+
num_inference_steps=50
120+
).images[0]
121+
```
103122

104123
## QwenImagePipeline
105124

0 commit comments

Comments
 (0)