Nodes/ComfyUI-Smart-Upscaler/Stitch Tiles Into One Picture
ComfyUI Node

Stitch Tiles Into One Picture

A ComfyUI node in Smart Upscaler/Processing with 12 inputs and 2 outputs.

By HallettVisual·Created 21 days ago·Updated 12 days ago· 11
Stitch Tiles Into One Picture
  • processed_images
  • source_tiles
  • blend_masks
  • corrected_tiles
  • final_image
tile_references
tile_metadata_json
reference_modeStay close to the original photo
structure_preservation55
detail_supportBalanced
fallback_methodbilinear
cross_tile_consistency35
consistency_modeShift the whole tile evenly
finish_presetManual - I set the dials myself
CategorySmart Upscaler/Processing

Inputs (12)

NameTypeDefaultDescription
processed_imagesIMAGE
tile_referencesSTRING
source_tilesIMAGE
tile_metadata_jsonSTRING
blend_masksMASK
reference_modeCOMBOStay close to the original photoThe most important setting here. Stay close to the original: every tile is pulled back toward the source's own colour and brightness. Use this whenever the source was already a correct picture - it is also the strongest cure for visible tiles, because it gives them all the same starting tone. Keep the new look: each tile keeps the colour and brightness the model gave it, and only bent shapes are corrected. Use this when you deliberately changed the picture - a style, a time of day, a repair of a broken source.
structure_preservationINT550–100How strongly setting 1 is applied. Around 50 is a normal photo upscale. Below about 20 it barely does anything, so a low number here undoes setting 1 - raise it if the result drifts from your original.
detail_supportCOMBOBalancedSettings 1 and 2 pull the picture back toward the source. This decides how much of the fine detail the model just generated survives that pull. Keep more new detail is the right choice when the model genuinely improved the texture and you only want the source to fix colour and shape.
fallback_methodCOMBObilinearOnly used during a one-tile test, to fill in the tiles you have not rendered yet so you can see the whole picture. Has no effect on a normal full run. Leave it alone.
cross_tile_consistencyINT350–100Evens out colour and brightness differences between neighbouring tiles, using the strip of picture they share. 0 is off; 60 is strong. This fixes tiles that came out different SHADES. It cannot fix tiles that generated different TEXTURE - if you can see a grid in flat areas like water or sky, that comes from the prompt, so check the prompt log first.
consistency_modeoptCOMBOShift the whole tile evenlyShift the whole tile evenly: one correction for the whole tile. Fine when a tile is uniformly off. Fade toward the edge that disagrees: the correction is strongest at the join and fades away across the tile, so a tile that only mismatches on one side is fixed there instead of everywhere. This is the better choice whenever you can actually see the joins.
finish_presetoptCOMBOManual - I set the dials myselfPick one of these FIRST - it fills in every dial above, then stays on screen as a label so you can see what you chose and adjust from there. Photo upscale, seams hidden: start here for a normal upscale of a picture that was already correct. Use the 'I changed the look' presets when you asked for a style, a time of day, or a repair, so your new look is not pulled back to the original.

Outputs (2)

NameTypeDescription
corrected_tilesIMAGE
final_imageIMAGE