kayorl 4fa5c458ac refactor(颜色匹配): 简化颜色迁移算法并优化色域保护
移除不必要的变量和内存清理操作
简化颜色偏移计算逻辑
添加色相保护映射防止颜色溢出
优化高光和阴影区域的颜色处理
2026-03-18 10:58:43 +08:00

ComfyUI Smart Color Match (Masked)

A custom node for ComfyUI that performs color matching between a reference image and a generated image, with support for masking.

Features

  • Mask Support: Can ignore specific areas (like clothes) when calculating color statistics, ensuring the background color tone matches the reference perfectly while preserving the subject.
  • Algorithms:
    • mkl_neutral: Only adjusts mean (White Balance), very stable.
    • reinhard_lab: Adjusts mean and standard deviation in LAB color space (A/B channels only).
  • Blend Factor: Adjust the intensity of the color correction.

Installation

  1. Clone this repository into your ComfyUI/custom_nodes/ directory:
    cd ComfyUI/custom_nodes/
    git clone https://github.com/YOUR_USERNAME/ComfyUI-Smart-Color-Match.git
    
S
Description
No description provided
Readme
79 KiB
Languages
Python 100%