diff --git a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py index 7a2157611228..22949bae3e2b 100644 --- a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py +++ b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py @@ -646,8 +646,7 @@ def __call__( returning a tuple, the first element is a list with the generated images. """ image_size = image[0].size if isinstance(image, list) else image.size - width, height = image_size - calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, width / height) + calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, image_size[0] / image_size[1]) height = height or calculated_height width = width or calculated_width