Skip to content

Commit 8a3524a

Browse files
committed
fix(qwen-image):
shape calculation fix
1 parent 8d1de40 commit 8a3524a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,7 @@ def __call__(
646646
returning a tuple, the first element is a list with the generated images.
647647
"""
648648
image_size = image[0].size if isinstance(image, list) else image.size
649-
width, height = image_size
650-
calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, width / height)
649+
calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, image_size[0] / image_size[1])
651650
height = height or calculated_height
652651
width = width or calculated_width
653652

0 commit comments

Comments
 (0)