2024-09-19 23:08:19 +03:00
2024-09-01 23:24:05 +03:00
2024-09-19 23:08:19 +03:00
2025-02-21 12:42:16 +02:00
2024-09-01 23:24:05 +03:00
2025-04-30 21:18:37 +03:00
2025-04-19 13:32:07 +03:00
2025-04-19 22:28:54 +03:00
2025-02-19 13:58:03 +02:00

ComfyUI-Color_Transfer

Postprocessing nodes that implement color palette transfer in images. It replaces the dominant colors in an image with a target color palette.

Prevention/troubleshooting of import error

To avoid import issues install python package using CLI pip install scikit-learn.

Installation

Clone repo to your custom_nodes folder git clone https://github.com/45uee/ComfyUI-Color_Transfer.git

Usage

  1. Create a "Color Palette" node containing RGB values of your desired colors. Color must be defined in this format: [(Value, Value, Value), ...], for example [(30, 32, 30), (60, 61, 55), (105, 117, 101), (236, 223, 204)]
  2. Create a "Palette Transfer" node, and connect your image and palette as input, that's all.
  • You can specify color clustering and comparing distance method, by default MiniBatchKMeans faster but can be less accurate

Example

alt text

S
Description
No description provided
Readme MIT
1.5 MiB
Languages
Python 100%