Nodes/ComfyUI-NO8D-controls/NO8D Ref Tile Stitch
ComfyUI Node

NO8D Ref Tile Stitch

96 pixels of feather is the only thing standing between you and a visible grid

By no8d·Created 6 months ago·Updated 3 days ago· 325
NO8D Ref Tile Stitch
  • tiles
  • plan
  • image

At the end of the tiled reference upscale you have a pile of separately generated, separately aligned, separately colour-matched tiles, and you need one picture back. NO8D Ref Tile Stitch does that - and unlike most "merge images" nodes in ComfyUI, it doesn't guess the layout. It reads the geometry out of the plan that NO8D Ref Tile Split emitted at the start, so the seams land exactly where the plan said they would.

How the blend works

The overlap between neighbouring tiles is at least 256 pixels, and the seam you actually want is the midpoint of that overlap - not the tile edge. For each axis, the node computes a keep-window around that midpoint and builds a weight ramp across it: fully weighted in the middle of the tile, ramping linearly down to zero across 96 pixels centred on the seam. At the outer edges of the image there's no ramp at all, because there's nothing to blend with.

Those weight windows tile the canvas exactly once, so the reconstruction is a weighted sum into a fresh canvas sized from the plan, clamped to 0–1 at the end. Simple, deterministic, and it doesn't need the CPU to think about it.

The 96 is a constant - FEATHER = 96, right next to OVERLAP = 256, in the pack's _tiled_reference_helpers.py. There's no slider. The author's documentation is pointed about this: the centre-96-pixel linear feather is kept as-is from the original pipeline and is explicitly not the same as official sine-window blending. That's the design position of this whole node set - it's a faithful rebuild of a specific workflow, not a bag of tunable knobs.

Inputs and output

Two required inputs, no widgets:

  • tiles - the finished tiles, in the order they came out of Split, having been through Align and Color Match. A list.
  • plan - the NO8D_H3_TILE_PLAN from Split. It's a custom type: you can't preview it, nothing else accepts it, and if you try to wire an image into that socket the graph won't let you.

The output is image, and it's a list - one stitched picture per source image that the Split node planned for. That's the multi-image support the author added on top of goohai's original: run four photos through Split and you get four finished pictures back, in order. Wire it into a preview, SaveImage, or the free NO8D save node from the same pack if you also want captions.

Counting is the whole game

The node validates aggressively, which is good, because the alternative is a silently scrambled panorama:

  • Tiles are expected in batch-major, then row, then column order. plan.batch_size × plan.tile_count of them, exactly.
  • Too few, or ones dropped by a filter node in the middle: Expected N tiles, got M.
  • Extra tiles left over after the last planned image: N tiles left over after K images.
  • No plan connected at all: Tile Stitch received no plan; connect NO8D Ref Tile Split's plan output.

So the failure mode of this node is loud, and it's almost always a count mismatch caused by something upstream changing the list. Two things do that in practice: a node that flattens the list into one batched tensor and re-splits it in a different order, or any per-tile operation that drops a tile (a failed generation, a filter that removed a near-duplicate). Both look like an unrelated error in Stitch. They aren't.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/no8d/ComfyUI-NO8D-controls.git

Or install "ComfyUI-NO8D-controls" from ComfyUI Manager and let it handle requirements.txt (json-repair, openpyxl, rembg[cpu] - none of them for these H3 nodes, they're for the prompt-library and cutout features elsewhere in the pack). Restart, hard-refresh. You'll find it under the NO8D/H3 category; the README skips these six nodes entirely, so the repo's Chinese-language docs/tiled-reference-upscale.md is the only prose documentation that exists.

If you still see seams

A faint grid after stitching is normally not a blending problem. In order of likelihood: the tiles weren't colour-matched (method: none is the default, and on tricky images it isn't enough - try lab), or alignment was skipped, or the sampler was allowed to redraw too freely so each tile invented its own version of the same detail. That last one is the fundamental trade in tiled generation - more invention means a better-looking tile and a worse-looking join - which is why our upscaling notes spends so much time on keeping tiles faithful to their source.

What you can't do is fix it by widening the feather. It's fixed at 96 by construction. If you need a different blend, you're writing your own node - and the pack is MIT except for these six files, which are GPL-3.0 because they're derived from goohai's original script. Worth a look at the notice if you plan to redistribute a modified version.

CategoryNO8D/H3

Inputs (2)

NameTypeDefaultDescription
tilesIMAGE—
planNO8D_H3_TILE_PLAN—

Outputs (1)

NameTypeDescription
imageIMAGE—