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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| ref_latent | LATENT | VAE-encoded reference image. Encode it with the VAE that matches the model. | |
| transfer_mode | COMBO | adain (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_px | INT | 2568–1024 | Blur 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. |
| weight | FLOAT | 1.000–1 | Color fix strength. 0.0 = no correction, 1.0 = full. |
| tile_mix | FLOAT | 0.500–1 | adain 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_percent | FLOAT | 0.150–1 | Skip 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_mode | COMBO | gaussian (smoother) | Blur algorithm. Gaussian = smoother falloff. Box = sharp cutoff, A1111 original. |
| blur_radius_start_pxopt | INT | 00–1024 | Start the blur radius here and move linearly to blur_radius_px by the end. 0 = constant radius. |
| sharpnessopt | FLOAT | 0.000–2 | Tile mode only. Direct high-pass detail boost. 0.0 = off, 1.0 = moderate. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |