Skip to content

Commit 01f264f

Browse files
committed
Update pipeline_qwenimage_edit_plus.py
1 parent 7e66df2 commit 01f264f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ def _get_qwen_prompt_embeds(
255255
if image is None:
256256
images_for_processor = None
257257
else:
258-
# If `image` is a single image (not list) the processor will broadcast it.
259-
# If `image` is a list of conditioning images, we must repeat that list
260-
# for each prompt so processor has one entry per text example.
261258
if isinstance(image, list):
262259
images_for_processor = [image] * len(txt)
263260
else:
@@ -638,7 +635,7 @@ def __call__(
638635
[`~pipelines.qwenimage.QwenImagePipelineOutput`] if `return_dict` is True, otherwise a `tuple`. When
639636
returning a tuple, the first element is a list with the generated images.
640637
"""
641-
# Use the first image's size as the deterministic base for output dims
638+
642639
ref_img = image[0] if isinstance(image, list) else image
643640
if isinstance(ref_img, (tuple, list)):
644641
ref_img = ref_img[0]

0 commit comments

Comments
 (0)