Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
dba4e007
You need to sign in or sign up before continuing.
Unverified
Commit
dba4e007
authored
Aug 19, 2025
by
naykun
Committed by
GitHub
Aug 19, 2025
Browse files
Emergency fix for Qwen-Image-Edit (#12188)
fix(qwen-image): shape calculation fix
parent
8d1de408
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py
src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py
+1
-2
No files found.
src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py
View file @
dba4e007
...
...
@@ -646,8 +646,7 @@ class QwenImageEditPipeline(DiffusionPipeline, QwenImageLoraLoaderMixin):
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment