Fix HiDiffusion ratio overrides and SDXL T2 behavior - #9511
Open
DustyShoe wants to merge 10 commits into
Open
Conversation
DustyShoe
marked this pull request as ready for review
August 20, 2026 14:09
DustyShoe
requested review from
JPPhoto,
Pfannkuchensack,
blessedcoolant,
dunkeroni and
lstein
as code owners
August 20, 2026 14:09
DustyShoe
force-pushed
the
fix/hidiffusion-ratio-behavior
branch
from
August 24, 2026 08:32
cc121ba to
c9eb228
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fix makes HiDiffusion T1 and T2 ratio overrides behave as configured.
For standard high-resolution SDXL generation, the aggressive RAU-Net schedule replaced the T2 threshold with a fixed step, so changing T2 did not affect the result. The aggressive schedule is now limited to T1 blocks, while T2 blocks use their configured threshold.
Ratio overrides are stored per patched model instead of mutating process-global preset dictionaries. This prevents overlapping generations from leaking settings into each other. The UI now supports automatic ratios, which preserve HiDiffusion's resolution-aware defaults, while explicit values remain available as manual overrides.
Regional prompt and regional IP-Adapter masks now include the additional 16x downscale level used by HiDiffusion's RAU-Net. This prevents missing-mask
KeyErrorfailures when Regional Guidance is combined with HiDiffusion.The Redux migration converts the previous numeric defaults to automatic ratios, metadata recall preserves automatic values, and the OpenAPI schema, generated frontend types, documentation, and localized UI copy are updated.
Related Issues / Discussions
None.
QA Instructions
Automated validation:
git diff --checkpassed.Merge Plan
No special merge handling is required.
Checklist
What's Newcopy (if doing a release after this PR)