Repository navigation
Hires fix: suggest the settings from the selected model instead of Latent x2 at 0.7 - #2598
Merged
Merged
Conversation
…nczos, low denoise) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 hires fix on the Images page used a latent upscale at denoise 0.7 whenever its fields were left empty. On a model made for 512-pixel images (such as SD-Turbo) that regenerates the picture at twice its size, so the result repeats structure and no longer matches the same seed without hires.
Every hires field a request leaves out now takes the selected model's suggestion when the job runs: the Lanczos upscaler, the job's steps, denoise 0.35, and scale 2 for models whose native size is at most 640 pixels (1.5 for larger ones). A latent upscaler chosen without a denoise gets 0.55. A model with no known family gets Lanczos, 2 and 0.35. Values the request sets are used as given.
GET /api/imagine/native-modelsreturns the suggestion inpreview.hires.How to verify
Pick SD-Turbo, generate one image with a fixed seed, then tick Hires fix with every hires field empty and generate again with the same seed: the second image is the same picture at 1024 pixels.
🤖 Generated with Claude Code