File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
docs/source/en/api/pipelines Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments