Nodes/ComfyUI-ContextAnchoredTileRefine/Context-Anchored Tile Refine
ComfyUI Node

Context-Anchored Tile Refine

A ComfyUI node in image/upscaling with 11 inputs and 1 output.

By Blakeem·Created about a month ago·Updated 3 days ago· 17
Context-Anchored Tile Refine
  • image
  • guider
  • sampler
  • sigmas
  • vae
  • noise
  • mask
  • IMAGE
max_tile_width1024
max_tile_height1024
context_anchor32
context_overlap32
Categoryimage/upscaling

Inputs (11)

NameTypeDefaultDescription
imageIMAGEThe image to refine. Upscale it before this node.
guiderGUIDERThe guider that denoises each tile.
samplerSAMPLERThe sampler used to denoise each tile.
sigmasSIGMASThe sigma schedule used when sampling each tile.
vaeVAEThe VAE that encodes and decodes each tile.
noiseNOISENoise is drawn once for the entire image and then sliced for each tile.
max_tile_widthINT1024256–16384Hard cap on the width the model ever sees per sampled crop, including the context_overlap and context_anchor rings. Set to the largest width the model supports.
max_tile_heightINT1024256–16384Hard cap on the height the model ever sees per sampled crop, including the context_overlap and context_anchor rings. Set to the largest height the model supports.
context_anchorINT320–512Pixels around each tile that are frozen and shown to the model as context, then cropped away. With a mask it is also the frozen background the region is refined against, so keep it above 0.
context_overlapINT320–512Overlapped context that is diffused from both sides and then blended. It anchors the tiles to each other, like context_anchor anchors each tile to its surroundings.
maskoptMASKOnly the masked region is refined and the rest is left untouched. Feed an inverted mask for a second pass.

Outputs (1)

NameTypeDescription
IMAGEIMAGE