NO8D Ref Tile Color Match
Five ways to fix tiles that don't agree on colour
- image
- reference
- image
Sampler set to 6 steps and CFG 1 will redraw your tiles faithfully, mostly. What it won't do is agree with itself about white balance. Tile four comes back half a stop warmer than tile five, and when you blend them you get a faint grid - the classic tiled-upscale tell. NO8D Ref Tile Color Match is the deterministic fix: no second sampling pass, no re-rolling, just a statistics transfer from the source tile onto the generated one.
This is the cheap primitive that our post-processing notes keeps arguing people should reach for before anything generative. It costs milliseconds and it doesn't change what's in the picture.
The mechanism
You give it two single-frame images, image and reference, and it nudges the first one's colour statistics toward the second's. The clever bit is that it doesn't need the images to be the same size - if they differ, the reference is resized to your image's dimensions first, so you can colour-match a 1739-pixel generated tile against a differently-shaped source without thinking about it.
To keep it fast, both images are subsampled on a stride that caps the working set at roughly 256 pixels on the long edge. Mean, standard deviation and covariance are computed on that sample, not on every pixel. For a colour transfer this is more than accurate enough.
Then it depends on method:
none- passes the image through untouched. This is the default, and the author's own reference workflow runs with it.wavelet- the frequency-separation approach: build a heavily blurred version with repeated 1-2-4-8-16 radius separable filters, subtract it to isolate your image's high frequencies, then add back the reference's low frequencies. Structure and detail stay yours; the broad colour and tone become the reference's. Good for tiles that got the lighting wrong but the detail right.lab- mean/std transfer performed in CIELAB rather than RGB. Because it operates in a perceptual space, it moves lightness and chroma on separate axes instead of smearing everything together.adain- mean/std transfer in RGB, done as a diagonal scale per channel. This is the AdaIN idea with the style network removed. The most aggressive of the sensible options.mkl- full covariance matching, the Monge–Kantorovich linear solution: it whitens the source statistics and re-colours them with the reference's full 3×3 covariance, not just the per-channel spread. It's the one that handles a genuine hue shift rather than a brightness shift.
All five, including none, then clip to 0–1 and hand back the image.
What you'll actually wire
image comes from NO8D Ref Tile Align, reference from the same source tile list that went into Align. One output, image, which goes into NO8D Ref Tile Stitch. Both inputs are single-frame - batches are rejected with "Color Match expects one frame", because this node is meant to be called per tile by list execution.
Start at none. Genuinely. The H3 workflow's own reference settings ship with colour match off, and the reason is that the alignment node plus feathered blending already handles most drift; a statistics transfer on top can flatten a tile that was fine. If you see a grid in the finished image - faint rectangular edges where tiles meet - that's your cue. Try lab first (gentlest useful step in perceptual space), then wavelet if the seams are luminance-shaped rather than hue-shaped, then mkl if tiles are visibly different colours rather than slightly different brightness. adain is there for the stubborn cases and it will bite: it drags contrast too.
Installing
Same pack, no extra models:
cd ComfyUI/custom_nodes
git clone https://github.com/no8d/ComfyUI-NO8D-controls.git
Manager install of "ComfyUI-NO8D-controls" gets you the requirements.txt dependencies automatically; if you clone, install them yourself into ComfyUI's Python - the README is emphatic about not using some unrelated system interpreter. Restart, hard-refresh. It lives under NO8D/H3.
Notes and snags
Don't swap in a generic colour-match node here. Spacepxl's Color Match Image is excellent and I'd use it for compositing any day, but it's not the same algorithm. The pack's own documentation says explicitly that these five methods can't be treated as equivalent to the official ColorTransfer, and that the feathering in Stitch can't be treated as equivalent to official sine blending either. If you substitute, you'll get a different picture and you'll have broken the reason this workflow exists - matching the original reference pipeline.
Degenerate covariance. mkl needs three dimensions' worth of real variation. Point it at a flat sky tile and the covariance is near-singular; the code clamps the eigenvalues to a tiny epsilon rather than blowing up, but "doesn't crash" isn't "looks good." Skip flat tiles, or just use lab.
It won't rescue a bad tile. Colour match fixes overall statistics, not structure. If the model hallucinated a completely different wall, making its hue agree with its neighbour just gives you a wrong wall in the right colour. That's a denoise and prompt problem - see our upscaling notes on keeping tiles faithful in the first place.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| reference | IMAGE | — | |
| method | COMBO | none | 5 options: none, wavelet, lab, adain, mkl |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |