EasyUse/Fixgenerated

HiresFix(hiresFix)

The HiresFix node applies a high-resolution fix pass to an image inside a ComfyUI pipeline.

hires Fix

pipe
image
vae
pipe
image
latent
model_name
COMBO
rescale_after_model
1
rescale_method
COMBO
rescale
COMBO
percent
50
width
INT
height
INT
longer_side
INT
crop
COMBO
image_output
Preview
link_id
INT
save_prefix
ComfyUI
Easy Use

Description

The HiresFix node applies a high-resolution fix pass to an image inside a ComfyUI pipeline. It rescales the input image using the chosen mode and method, optionally rescales after the model stage, then encodes the resulting image into a latent using a VAE. The node can also pass through and update a pipeline object, making it convenient to insert into existing PIPE_LINE workflows.

Inputs

model_name

The model/checkpoint to use for the hires-fix pass. Select from the available models in the list.

rescale_after_model

Toggle whether the rescale is applied after the model stage. Enabled by default (true). When set to false, rescaling is done before the model stage.

rescale_method

The interpolation method used when rescaling the image. The available methods are provided by the ComfyUI sampler/upscaler options.

rescale

Determines how the image is rescaled:

  • by percentage — Scales the image by the percent value.
  • to Width/Height — Scales the image to the exact width and height values.
  • to longer side - maintain aspect — Scales the image so its longer side equals longer_side, preserving the aspect ratio.

percent

Scaling percentage used when rescale is set to by percentage. Defaults to 50, range 0 to 1000.

width

Target width used when rescale is set to to Width/Height.

height

Target height used when rescale is set to to Width/Height.

longer_side

Target length for the longer side when rescale is set to to longer side - maintain aspect.

crop

Cropping mode applied after rescaling. Select the appropriate crop behavior from the available options.

image_output

Controls how the output image is handled:

  • Hide — Do not show or save the image.
  • Preview — Show the image in the preview.
  • Save — Save the image to disk.
  • Hide&Save — Do not show a preview, but save the image.
  • Sender — Send the image to another workflow using link_id.
  • Sender&Save — Send the image and also save it.

Defaults to Preview.

link_id

Destination link ID used when image_output is set to Sender or Sender&Save.

save_prefix

Prefix used for saved image filenames. Defaults to ComfyUI.

pipe

Optional PIPE_LINE input for passing an existing pipeline state into the node.

image

Optional image input. If no direct image is supplied, the node may use the image carried by the pipe input.

vae

Optional VAE used to encode the rescaled image into a latent.

Outputs

PIPE_LINE

The updated pipeline object, carrying the processed image/latent and any preserved pipeline state.

IMAGE output

The rescaled image produced by the hires-fix pass.

LATENT

The latent encoded from the rescaled image, ready for further sampling or decoding steps.

Usage Notes

Insert this node when you want to upscale or resize an image before continuing with latent-space operations. The combination of rescale_after_model, rescale_method, and rescale gives fine control over when and how the high-resolution fix is applied. Use image_output with Save or Sender modes when you need to persist or route the result elsewhere.

Comments

Sign in with GitHub to join the discussion.

Loading comments…