Repository navigation
feat(upscale): support FLUX.2 and Qwen-Image in the Upscale widget - #9934
Merged
joshistoast merged 1 commit intoOct 19, 2026
Merged
Conversation
Index-clipped Creativity now aims at each node's own sigma schedule, which Qwen-Image's terminal stretch needs. FLUX.2 takes its served steps and guidance on model change and refuses guidance above its cap; Qwen-Image Edit is refused.
joshistoast
approved these changes
Oct 19, 2026
5 of 7 tasks
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
The Upscale widget can now use FLUX.2 main models (Klein 4B/9B, Klein Base, [dev]) and Qwen Image main models. It runs the same pass as the FLUX.1, Z-Image, Anima and Krea-2 entries: Spandrel enlarges the image, then a single img2img pass covers the whole frame, with tiled VAE encode and decode. No backend changes; the prerequisites are merged (#9890 FLUX.2 VAE tiling, #9892 Qwen Image shift hold).
FLUX.2
flux2_denoiseclipsdenoising_startby sigma value, so Creativity maps exactly as it does for FLUX.1.guidanceand the negative prompt is never wired, as in Generate.flux2_denoisespreads the requested steps over the clipped window. Every step runs at full upscale resolution, so Klein at the widget's 30 would cost about 7× what it was distilled for.guidance_max(20 for FLUX.2), which the node would otherwise refuse after the upscale has already run.Qwen Image
qwen_image_denoiseclips by step index with Python'sround, so the widget translates Creativity to the step nearest FLUX's entry sigma.UpscaleIndexClipping.shift(model, size)therefore becomessigmas(model, size, steps).shiftis sent, so the node's held dynamic shift applies.Qwen Image starts, Balanced at 30 steps: step 19 at 1024², step 21 at 2048² and 4096².
Related Issues / Discussions
Follow-up to #9825 and #9889. Builds on #9890 and #9892. Qwen Image 2.1 is not included: its Base model clips by step index, but Turbo clips by noise level, so the table would need clipping per variant.
QA Instructions
Automated (webv2, run one by one)
lint(oxfmt, oxlint,tsc --noEmit, architecture) andbuild: pass.test: 10,847 passed. Three tests that format numbers with the system locale fail on this German-locale machine without this change too.test:fixtures(40),test:performance:architecture(build and browser, no baseline change),test:project-files:browserandtest:accessibility:browser: pass.Automated (Python)
test_upscale_index_clipped_starts.pyandtest_frontend_graph_node_types.py: 1,076 passed, 3 skipped.qwen_image_denoisewith the real diffusers scheduler and checks that the pass enters at the step nearest FLUX's sigma.flux2_denoiseis driven to the img2img preblend for the starts the widget sends. The test checks that it enters at exactly1 - denoising_startand steps with its own Euler.End to end (RTX 4090, 1024² source, Balanced, 2× to 2048², through the Invoke button):
UI, checked in the browser
Review
Resolved:
Remaining, shared with existing entries:
Compatibility / Rollout
mistralEncoderModelandqwenVlEncoderModel. Older values normalize them tonull, and the model sync fills them in.Checklist
What's Newcopy (if doing a release after this PR)Need help on this PR? Tag
@codesmith-botwith what you need.