Nodes/ComfyUI-Apt_Preset/color_match_adv_visual
ComfyUI Node

color_match_adv_visual

Live-preview color matching with skin protection

By cardenluo·Created 2 years ago·Updated 22 days ago· 309
color_match_adv_visual
  • ref_img
  • target_image
  • target_mask
  • image
strength1.0
skin_protection0.2
brightness_range0.5
contrast_range0.5
saturation_range0.5
tone_strength0.5

Same node as color_match_adv - takes a reference image and pushes a target image's color toward it, with a dedicated skin-protection dial - flagged as an output node so it previews the matched result inline as you adjust sliders. It's filed under Apt_Preset/image/visualize_edit. Reach for this over the plain version while you're actively deciding how far to push a match, especially on anything with people in it where you want to watch skin tones as you tune skin_protection.

Naive color matching (pushing a whole image's tone toward a reference) is notorious for wrecking skin, since skin sits in a narrow color range generic matching doesn't treat specially - this node bakes in a dial to protect it, and the live preview is exactly where you'd want to catch the failure mode as it happens rather than after the fact.

How it works

ref_img supplies the target grade, target_image gets pushed toward it. strength scales overall match intensity. brightness_range, contrast_range, saturation_range, and tone_strength each act as a ceiling on how far the tool can push that property while matching. skin_protection pulls the match back off skin-colored pixels specifically.

The inputs and outputs that matter

  • ref_img and target_image (both required IMAGE).
  • strength (0.1-2, default 1) - your primary intensity dial.
  • skin_protection (0-1, default 0.2) - keep above 0 for portraits; watch it in the live preview if faces are shifting color.
  • brightness_range / contrast_range / saturation_range (0.1-2, default 0.5) and tone_strength (0.1-2, default 0.5) - per-property match limits.
  • Optional target_mask - restrict the match to a region of target_image.
  • Output: image, previewed inline since this is an output node.

How to install it

Through ComfyUI Manager: search "ComfyUI-Apt_Preset", install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git

then run install.bat (Windows) or install requirements manually on Linux/Mac, and restart. No model downloads for this node.

Common issues & troubleshooting

Match looks overdone in the preview. Pull strength down first - it's the broadest, most direct control.

Skin still shifts color. Raise skin_protection toward 1 instead of lowering strength globally; watch the live preview update as you nudge it up.

Barely any visible change. Confirm strength and tone_strength aren't both near their 0.1 floor.

Don't need the inline preview? color_match_adv has the same parameters without forcing output-node behavior, better for a longer pipeline.

IMPORT FAILED on the pack. ComfyUI-Apt_Preset is large and updates often; users have reported import failures after some updates. Reinstall via Manager before assuming it's this node.

CategoryApt_Preset/image/visualize_edit

Inputs (9)

NameTypeDefaultDescription
ref_imgIMAGE
target_imageIMAGE
strengthFLOAT1.00.1–2
skin_protectionFLOAT0.20–1
brightness_rangeFLOAT0.50.1–2
contrast_rangeFLOAT0.50.1–2
saturation_rangeFLOAT0.50.1–2
tone_strengthFLOAT0.50.1–2
target_maskoptMASK

Outputs (1)

NameTypeDescription
imageIMAGE