Skip to content

Hires fix: suggest the settings from the selected model instead of Latent x2 at 0.7 - #2598

Merged
Matlan1 merged 3 commits into
masterfrom
claude/affectionate-margulis-a3e3d7
Oct 22, 2026
Merged

Matlan1 merged 3 commits into
masterfrom
claude/affectionate-margulis-a3e3d7

Conversation

@Matlan1

@Matlan1 Matlan1 commented Oct 22, 2026

Copy link
Copy Markdown
Owner

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-models returns the suggestion in preview.hires.
  • The Images page shows it as the upscaler's first option and as the scale and denoise placeholders, and sends only the fields the user filled. A typed value is never replaced when the model changes; a new "Use suggested values" button fills the fields with the suggestion.
  • Latent upscalers stay selectable; the sidecar records the values a job used.

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

Matlan1 and others added 3 commits October 22, 2026 21:22
…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>
@Matlan1
Matlan1 merged commit cbf7215 into master Oct 22, 2026
22 checks passed
@Matlan1
Matlan1 deleted the claude/affectionate-margulis-a3e3d7 branch October 22, 2026 19:49
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.

1 participant