File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/diffusers/pipelines/qwenimage Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments