Skip to content

Fixing resizing bug#707

Merged
jaretburkett merged 2 commits intoostris:mainfrom
abionda-sc:abiondaresize-fix
Mar 28, 2026
Merged

Fixing resizing bug#707
jaretburkett merged 2 commits intoostris:mainfrom
abionda-sc:abiondaresize-fix

Conversation

@abionda-sc
Copy link
Copy Markdown
Contributor

In Qwen Image Edit and Flux 2, width and height are inverted during control image resizing.
This causes the LoRA to train with wrong images and create distorted results.
This PR solves the bug with a small code fix.

@avan06
Copy link
Copy Markdown

avan06 commented Feb 13, 2026

I have also confirmed that the width and height calculations in the original get_prompt_embeds are indeed inverted.

@jaretburkett jaretburkett merged commit 4ef5cbe into ostris:main Mar 28, 2026
@jaretburkett
Copy link
Copy Markdown
Contributor

Wow, amazing catch! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants