floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

ComfyUI-ColorCorrection

1

Last updated
2025-03-21

A custom node for ComfyUI designed to perform color correction specifically on clothing in images that have undergone face swapping. This tool addresses the frequent issue of color discrepancies during the face swap process, ensuring that the clothing retains its original hue.

  • Enables selection from various color correction techniques, including statistical methods, histogram matching, and LAB color space transfers.
  • Provides adjustable parameters for the strength and threshold of the color correction, allowing for precise control over the adjustments.
  • Features masked processing, which restricts color corrections to designated clothing areas, preserving other elements of the image.

Context

This tool is a specialized node within ComfyUI that focuses on correcting the colors of clothing in images where face-swapping has occurred. Its primary purpose is to counteract the common color shifts that can happen when blending different facial features, ensuring that the clothing retains its intended color fidelity.

Key Features & Benefits

The node offers multiple color correction methods, allowing users to choose the most suitable technique for their specific needs. The ability to fine-tune the strength and threshold of the corrections ensures that users can achieve the desired look without compromising the overall image quality. Additionally, the option to preserve luminosity while correcting colors is crucial for maintaining the natural brightness of the clothing.

Advanced Functionalities

Users can select from three advanced color correction methods: statistical, histogram, and LAB transfer. The statistical method utilizes mean and standard deviation for color adjustments, while histogram matching aligns color distributions for a more uniform appearance. LAB transfer operates in a color space that is perceptually aligned with human vision, providing more accurate color corrections.

Practical Benefits

This tool significantly enhances workflow efficiency by allowing users to maintain color accuracy in clothing during the face-swapping process. By providing targeted corrections through masked processing, it offers greater control over the final output quality, ensuring that the clothing looks realistic and consistent with the original image.

Credits/Acknowledgments

The development of this node was motivated by the need to resolve common color shifts that arise during face-swapping, particularly when dealing with differing skin tones or variable lighting conditions. The tool is released under the MIT license, promoting open-source collaboration and use.