Skip to content
,

ComfyUI Hires Fix (2026): Latent vs Model Upscale, Denoise Settings and Workflows

8–13 minutes
Woman in a living room holding a tablet with a HIRES FIX card, hook hires fix sharper AI images

Coming to ComfyUI from Automatic1111 or Forge and looking for the “Hires. fix” checkbox? There isn’t one.

ComfyUI has no single hires fix button because it lets you build the same thing yourself from a few standard nodes, and once you see how it works you get far more control than the old checkbox gave you.

This guide shows exactly how to do hires fix in ComfyUI with built-in nodes only.

It covers both methods (latent upscale and model upscale), the node chain for each, the denoise and step values that work, settings for SD 1.5, SDXL, Flux-style and Z-Image Turbo models, VRAM tips, and fixes for blurry results, duplicated faces and out-of-memory errors.

TL;DR

  • Hires fix = 2 passes: generate at the model’s native size, upscale, then run a second KSampler at partial denoise.
  • Latent method: KSampler → Upscale Latent By (1.5x) → KSampler at denoise 0.5-0.6.
  • Model method (sharper): VAE Decode → Upscale Image (using Model) → Upscale Image By to the target size → VAE Encode → KSampler at denoise 0.3-0.45.
  • Second pass: 10-20 steps on SD/SDXL, the same small step count on turbo models.
  • Out of memory? Use VAE Decode (Tiled) and upscale 1.5x instead of 2x.

New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.

What Hires Fix Actually Does

Image models are trained at a particular resolution: about 512×512 for SD 1.5, and about 1 megapixel (1024×1024) for SDXL. Ask for a much larger image in one go and the model tends to repeat things, giving you two heads, extra limbs or the subject tiled across the frame.

Hires fix avoids that by splitting the job into two passes:

  1. Pass 1: generate at the native resolution, so the composition is right.
  2. Upscale that result to the bigger size.
  3. Pass 2: run it through the sampler again at a partial denoise, so the model adds real detail at the new size without changing the layout.

ComfyUI’s own example page describes it the same way: hires fix “is just creating an image at a lower resolution, upscaling it and then sending it through img2img.” In ComfyUI, txt2img and img2img use the same KSampler node.

The only difference is the denoise value and whether the latent starts empty. If img2img is new to you, my ComfyUI img2img guide explains denoise in detail.

Latent Upscale vs Model Upscale

There are two ways to do the upscale step, and they behave differently.

Latent upscale Model (pixel) upscale
Where it upscales In latent space In pixel space, with an ESRGAN-type model
Extra downloads None An upscale model (.pth / .safetensors)
Speed Faster (no decode/encode) Slightly slower
Denoise needed in pass 2 Higher, about 0.5-0.6 Lower, about 0.3-0.45
Faithfulness to pass 1 Changes more Stays closer
Best for Adding lots of new detail, painterly styles Sharp photos, faces, keeping the first image

Why the denoise difference? Stretching a latent makes it soft and smeary. The sampler needs a higher denoise to repaint that blur into detail. An ESRGAN model already produces a sharp, clean image, so the second pass only needs to refine it.

Method 1: Latent Hires Fix

This works with no extra files. Start from the default text-to-image workflow (load it from the Workflow menu if your canvas is empty).

Node chain

Empty Latent Image → KSampler #1 → Upscale Latent By → KSampler #2 → VAE Decode → Save Image
(both KSamplers use the same MODEL and the same positive/negative prompts)

Step by step

  1. Keep your first KSampler as it is, at denoise 1.00, with the Empty Latent Image at the model’s native size.
  2. Double-click the canvas, search for Upscale Latent By and add it. Connect KSampler #1’s LATENT output to its samples input.
  3. Set upscale_method to nearest-exact or bislerp, and scale_by to 1.5 (the node’s default).
  4. Copy KSampler #1 (Ctrl+C, then Ctrl+Shift+V to paste with connections). That’s KSampler #2.
  5. Connect Upscale Latent By’s output to KSampler #2’s latent_image input.
  6. Set KSampler #2 denoise to 0.55 and steps to 15-20.
  7. Connect KSampler #2’s output to VAE Decode, then Save Image.

If you’d rather type exact pixel sizes, use Upscale Latent (without “By”) and enter the width and height. Keep both numbers divisible by 8.

Upscale methods in the latent nodes

The latent upscale nodes offer nearest-exact, bilinear, area, bicubic and bislerp. In practice the choice matters less than denoise. nearest-exact and bislerp are the common picks. Try both on the same seed and keep the one you like.

Method 2: Model (ESRGAN) Hires Fix

This method gives sharper, more faithful results, and it’s what most people end up using for photos and portraits.

1. Get an upscale model

Download a 4x upscaler such as 4x-UltraSharp, RealESRGAN x4plus or 4x NMKD Siax, and put it in:

ComfyUI/models/upscale_models/

ComfyUI Manager’s Model Manager can install these too. My ComfyUI upscale guide compares the popular upscale models. Refresh the browser (or press R) after adding files.

2. Node chain

KSampler #1 → VAE Decode → Upscale Image (using Model) → Upscale Image By (0.375 or 0.5)
           → VAE Encode → KSampler #2 (denoise 0.35) → VAE Decode → Save Image
                     ↑
           Load Upscale Model

Step by step

  1. After KSampler #1, add VAE Decode to turn the latent into an image.
  2. Add Load Upscale Model and pick your 4x model.
  3. Add Upscale Image (using Model). Connect the upscale model and the decoded image.
  4. A 4x model makes the image four times wider. To land on 1.5x, add Upscale Image By with scale_by 0.375 (4 x 0.375 = 1.5). For 2x, use 0.5. Use lanczos as the method.
  5. Add VAE Encode to turn the image back into a latent. Connect the checkpoint’s VAE.
  6. Feed that latent into KSampler #2 at denoise 0.3-0.45 and 12-20 steps.
  7. Finish with VAE Decode and Save Image.

Why not just save the 4x ESRGAN output? Because an upscale model only sharpens what’s there. It can’t add new texture, like skin pores or fabric weave, the way a second diffusion pass can. Combining the two gives you the best of both.

Denoise, Steps and Scale Settings

These are starting points. Fix the seed while you tune, so you’re only changing one thing at a time.

Setting Latent method Model method What happens if it’s too high or too low
Denoise (pass 2) 0.50-0.60 0.30-0.45 Too low: soft or plastic. Too high: new faces, extra objects, a changed composition.
Steps (pass 2) 15-20 12-20 More steps rarely help past 20 at partial denoise.
Scale 1.5x 1.5x-2x 2x on SD 1.5 is fine. On SDXL, 2x (2048 px) needs a lot of VRAM.
CFG Same as pass 1 Same as pass 1 A slightly lower CFG can reduce over-sharpening.
Sampler / scheduler Same as pass 1 Same as pass 1 See samplers and schedulers explained.
Seed Same or random Same or random Changes fine detail only, not layout.

How KSampler counts steps at partial denoise

With the basic KSampler, setting 20 steps at denoise 0.5 runs 20 steps over the last half of the noise schedule. You don’t need to double the steps to make up for a lower denoise. If you want A1111-style behaviour, where the step count is scaled by denoise, use KSampler (Advanced) with start_at_step instead.

Settings by Model Family

Model family Pass 1 size Hires target Notes
SD 1.5 and fine-tunes 512×512, 512×768 1.5x-2x (768-1024 px) Hires fix makes the biggest difference here. Either method works.
SDXL, Pony, Illustrious 1024×1024, 832×1216, 1216×832 1.5x (about 1536 px) The model method at denoise 0.3-0.4 keeps faces clean. See my SDXL guide.
Flux-style and other modern DiT models About 1 MP 1.5x They handle higher native sizes better, so a light pass at denoise 0.25-0.4 is usually enough.
Turbo / distilled models (Z-Image Turbo, Lightning LoRAs) Native size 1.5x Keep the model’s low step count (for example 8-9) and CFG around 1 in pass 2. Use a lower denoise, about 0.3-0.4.

For SDXL, keep pass 1 on one of the standard training sizes (about 1 megapixel). Starting from an odd size defeats the purpose of the first pass.

VRAM and Speed Tips

  • Use VAE Decode (Tiled) for the final decode. Decoding a 2048 px SDXL image is where 8-12 GB cards usually run out of memory.
  • Upscale 1.5x, not 2x, on SDXL. The second pass costs roughly as much as the extra pixels (2.25x the pixels of pass 1 at 1.5x, 4x at 2x).
  • Preview pass 1 first. Put a Preview Image after pass 1 and only enable pass 2 when you like the composition. You can bypass the pass-2 group with Ctrl+B. My guide to ComfyUI groups shows how to toggle a whole section.
  • Need 4K or bigger? Hires fix isn’t the tool. Use a tiled upscaler such as Ultimate SD Upscale after a normal hires fix.

For more ways to cut generation time, see how to speed up ComfyUI.

Going Further: Different Model or Prompt in Pass 2

Because pass 2 is just another KSampler, you can feed it anything:

  • A different checkpoint: compose with one model, then refine with a more realistic one. Add a second Load Checkpoint and wire its MODEL, CLIP and VAE into pass 2. ComfyUI’s own examples include a two-model hires workflow like this.
  • A different prompt: add detail words such as “detailed skin texture” only to the pass-2 prompt.
  • Different LoRAs: apply a detail LoRA only in pass 2. See how to use LoRAs in ComfyUI.
  • Face fix afterwards: run a Face Detailer after the hires pass for small faces in wide shots.

If you’re switching latent formats between models (for example SD 1.5 to SDXL), decode to an image and re-encode with the second model’s VAE. Latents from different model families aren’t compatible.

Troubleshooting

The result is blurry or soft

With the latent method, denoise is too low. Raise it to 0.55-0.6. With the model method, check that the upscale model loaded and that you didn’t accidentally route the original (un-upscaled) image into VAE Encode.

Faces or objects change, or duplicates appear

Denoise is too high for the scale. Drop it by 0.1, or switch to the model method. Also check that pass 1 used the model’s native size.

Out of memory on pass 2 or on decode

Swap in VAE Decode (Tiled), upscale 1.5x instead of 2x, and close other GPU apps. My CUDA out of memory fix covers launch flags like --lowvram.

Size mismatch or “mat1 and mat2” errors

You’ve usually mixed a VAE or latent from one model family with another. Use the matching VAE for each pass. See the mat1 and mat2 shapes fix.

The upscale model isn’t in the list

Check the file is in models/upscale_models/, then press R or refresh the page. If you keep models in another folder, point ComfyUI at it with extra_model_paths.yaml.

FAQ

Does ComfyUI have a hires fix node?

Not a single built-in one. You build it from Upscale Latent By or an upscale model plus a second KSampler. Some custom node packs add one-node hires fix wrappers, but the built-in version gives the same result.

What denoise should I use for hires fix?

Start at 0.55 for latent upscale and 0.35 for model upscale. Go lower to keep the image closer to pass 1, and higher for more new detail.

Is latent upscale or ESRGAN better?

ESRGAN-style model upscaling is sharper and more faithful, so it’s better for photos and faces. Latent upscaling is faster, needs no download and adds more new detail, which suits illustrations.

Should I use the same seed in pass 2?

Either works. The seed in pass 2 only affects fine detail, because the layout comes from pass 1.

Do I need hires fix with SDXL or Flux?

Less than with SD 1.5, but it still helps if you want a final image bigger than about 1 megapixel with real detail rather than a stretched look.

How is this different from Ultimate SD Upscale?

Hires fix runs one pass over the whole image, so it’s limited by VRAM. Ultimate SD Upscale works in tiles, so it can reach 4K and beyond. Many workflows use hires fix first, then a tiled upscale.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a living room holding a tablet with a HIRES FIX card, hook hires fix sharper AI images