Nodes/comfyui-colorfix-v3/ColorFix Patcher
ComfyUI Node

ColorFix Patcher

Transfers color from a reference image at every denoising step, on any image model that runs through KSampler. adain keeps the model's composition, tile matches colors by position, and tile_mix blends the two.

By ihorpankin·Created 8 months ago·Updated 4 days ago· 6
ColorFix Patcher
  • model
  • ref_latent
  • model
◄transfer_modeadain (global)►
◄blur_radius_px256►
◄weight1.00►
◄tile_mix0.50►
◄start_percent0.15►
◄blur_modegaussian (smoother)►
◄blur_radius_start_px0►
◄sharpness0.00►
Categorycolorfix-v3

Inputs (10)

NameTypeDefaultDescription
modelMODEL—
ref_latentLATENTVAE-encoded reference image. Encode it with the VAE that matches the model.
transfer_modeCOMBOadain (global)tile = swap blurred colors in place: strongest object color, but colors follow the reference's layout. Best when reference and output share a composition. adain = match each latent channel's mean and spread: palette and tone only, no reference shapes. Best for an unrelated reference. mean-only = shift tone, keep contrast.
blur_radius_pxINT2568–1024Blur radius in image pixels, converted per model. Smaller = stronger color but more of the reference's structure. Used by tile mode and by tile_mix. Try 192 for tile mode and 256 for the hybrid.
weightFLOAT1.000–1Color fix strength. 0.0 = no correction, 1.0 = full.
tile_mixFLOAT0.500–1adain modes only. Share of tile transfer blended over the adain result. Higher = color closer to the reference's positions, but more of its layout. Lower it if the reference's backdrop bleeds onto your subject.
start_percentFLOAT0.150–1Skip the fix before this point of sampling. Early steps decide composition, so a later start keeps more of the model's own shapes. 0.0 = fix from the first step.
blur_modeCOMBOgaussian (smoother)Blur algorithm. Gaussian = smoother falloff. Box = sharp cutoff, A1111 original.
blur_radius_start_pxoptINT00–1024Start the blur radius here and move linearly to blur_radius_px by the end. 0 = constant radius.
sharpnessoptFLOAT0.000–2Tile mode only. Direct high-pass detail boost. 0.0 = off, 1.0 = moderate.

Outputs (1)

NameTypeDescription
modelMODEL—