The Ultimate AI Auto Color Correction! How to Use ComfyUI-SuperBeasts

an animated female character with blonde hair and blue eyes stands in a dimly lit room with a cityscape view at night wearing a blue top and surrounded by various objects on a table with a warm glow f
  • AI auto color correction is convenient.
  • LAB correction provides natural results.
  • HiDream responds effectively to color prompts.

Introduction

Hello, I’m Easygoing.

In this post, we’ll explore color correction for illustrations generated by image generation AI.

An anime-style illustration of a blonde female character with fair skin and vibrant blonde hair, enhanced by AI auto color correction.
Blonde Lady Series

sRGB and LAB Color Spaces

Before diving into color correction, let’s take a look at color spaces.

sRGB (Standard RGB) Color Space

Monitors on computers and smartphones display colors by combining three primary colors: Red, Green, and Blue.

  • Red: 0–255
  • Green: 0–255
  • Blue: 0–255
ComfyUI’s LayerColor: RGB node settings screen, displaying sliders for red, green, and blue.
ComfyUI_LayerStyle LayerColor: RGB Node

The 0–255 range corresponds to 8 bits in binary, and the total 24-bit RGB color representation is known as standard RGB or True Color.

sRGB is designed primarily for monitor display on smartphones and computers.

LAB Color Space

In contrast, the LAB color space was defined in 1976 by the International Commission on Illumination (CIE) based on human perception.

The LAB color space consists of three components:

  • L (Lightness): Brightness of the color, ranging from 0 (black) to 100 (white).
  • a (Red-Green Axis): Redness (positive values) to greenness (negative values), typically -128 to +127.
  • b (Yellow-Blue Axis): Yellowness (positive values) to blueness (negative values), typically -128 to +127.
ComfyUI’s LayerColor: LAB node settings screen, displaying sliders for lightness (L), red-green axis (a), and yellow-blue axis (b).
ComfyUI_LayerStyle LayerColor: LAB Node

Since the LAB color space is based on human perception, the same LAB values represent the same color across different devices.

PNG files handled by image generation AI use sRGB, but by converting to LAB for adjustments and then reverting to sRGB, you can achieve natural color adjustments aligned with human perception.

Comparing Three Types of Color Adjustments!

Let’s compare three types of color adjustments:

  • RGB Correction
  • LAB Correction
  • AI Auto Correction

Original Illustration

We’ll be correcting the following illustration generated by an SDXL anime model.

An anime-style illustration of a blonde female generated by SDXL, with a slightly bluish tone and low contrast.

This illustration has clean color usage overall but appears slightly bluish, and due to the traditional e-prediction model of SDXL, it feels low in contrast and whitish.

Let’s correct the colors of this illustration.

1. RGB Correction

The SDXL blonde female illustration with RGB correction applied. Contrast is improved, and the black in the clothing is emphasized, but the skin tone is slightly darker.
ComfyUI’s LayerColor: AutoAdjust V2 node settings screen, displaying parameters for auto color adjustment.

First, let’s try RGB correction using the LayerColor: AutoAdjust V2 node from ComfyUI-LayerStyle.

RGB correction increases contrast, emphasizing the black in the clothing and giving the image a tighter feel. However, the skin tone balance shifts, making the face darker than the original.

2. LAB Correction

The SDXL blonde female illustration with LAB correction applied. Natural skin tone balance is maintained, with vibrant color adjustments.
ComfyUI’s HDR Effects node settings screen, displaying color correction parameters in LAB space.

Next, let’s try color correction in LAB space using the HDR Effects node from ComfyUI-SuperBeasts.

This correction is stronger than RGB correction but maintains the balance of skin tones.

3. AI Auto Correction

The SDXL blonde female illustration with AI auto color correction applied. The dull bluish tone is removed, and the skin tone is adjusted to a healthy complexion.
ComfyUI’s Super Pop Color Adjustment node settings screen, displaying parameters for AI auto color correction.

Finally, let’s try AI auto correction using the Super Pop Color Adjustment node from ComfyUI-SuperBeasts.

The AI prioritizes skin tone adjustments, removing the dull bluish tone and resulting in a healthy-looking illustration.

AI Auto Correction Is Convenient!

With standard RGB correction, manual adjustments per image can yield optimal results, but incorporating it into a ComfyUI workflow for automatic adjustments can significantly alter the balance of some illustrations, limiting how strong the correction can be.

In contrast, AI auto color correction optimizes adjustments for each illustration, allowing for fully automated processing within a workflow.

An anime-style illustration of a blonde female turning around in a stylish bar, enhanced with vibrant and natural tones through AI auto correction and LAB correction.

Additionally, performing AI correction followed by LAB correction allows you to fine-tune the colors to your desired expression.

AI Auto Correction → LAB Correction Workflow

Here’s the workflow for AI auto correction followed by LAB correction.


flowchart LR

subgraph SDXL
A1(Original Illustration)
end

subgraph Super POP
B1(Skin Tone Adjustment)
end

subgraph HDR Effects
C1(Enhance Contrast)
end

subgraph HiDream
D1(Redraw)
end

A1-->B1
B1-->C1
C1-->D1
  1. Generate the original illustration with an SDXL anime model.
  2. Adjust skin tones with AI auto correction.
  3. Enhance contrast with LAB correction.
  4. Redraw with HiDream.

Actual Illustrations!

Let’s take a look at the actual illustrations.

SDXL (Original)

An anime-style illustration of a blonde female generated by SDXL, with a dull bluish tone and low contrast.

This is the original illustration generated by the SDXL anime model.

AI Auto Correction with Super POP

The SDXL blonde female illustration with Super POP AI auto correction applied. The dull bluish tone is removed, and the skin complexion is improved.

The original illustration had a slightly dull bluish tone, but the colors are nicely corrected, especially improving the skin’s complexion.

LAB Correction with HDR Effects

The SDXL blonde female illustration with LAB correction applied using HDR Effects. Contrast is improved, with darker colors emphasized for a tighter expression.

Next, we apply color correction in LAB space using the HDR Effects node.

The SDXL model struggles with high-contrast expressions, but by lowering the level of dark colors, we achieve a tighter overall expression. Additionally, reducing the whitish tone helps mitigate the noise typical of diffusion models in image generation AI.

Redrawing with HiDream Model

The completed SDXL blonde female illustration redrawn with the HiDream model, achieving high quality and natural color tones.

Finally, we redraw the illustration using the high-quality HiDream-I1-Dev model to complete it.

While the HiDream model generates high-quality illustrations, its skin tone expression is not always ideal. By using color-adjusted illustrations from SDXL, we can achieve preferred color expressions even with the HiDream model.

Other Examples!

Here are other illustrations generated using the same workflow.

Luxurious House

An anime-style illustration of a blonde female standing in a luxurious room, generated by SDXL with a slightly bluish tone. An anime-style illustration of a blonde female standing in a luxurious room, corrected with SuperBeasts and redrawn with HiDream for vibrant colors.
SDXL -> SuperBeasts Correction -> HiDream Redraw

Stylish Bar

An anime-style illustration of a blonde female standing in a stylish bar, generated by SDXL with a bluish tone. An anime-style illustration of a blonde female in a stylish bar, redrawn with HiDream with corrected arm shapes and vibrant colors.
HiDream responds well to color-specific prompts (in this case, burgandy).

Nighttime Amusement Park

An anime-style illustration of a blonde female enjoying a night at an amusement park, generated by SDXL with a bluish tone. An anime-style illustration of a blonde female at a night amusement park, corrected with SuperBeasts and redrawn with HiDream for vibrant colors.
Stands out even against a dark background

Workflow

Here’s the color adjustment workflow used.

1. Color Adjustment Workflow

ComfyUI color adjustment workflow diagram, showing AI auto correction with Super POP and LAB correction with HDR Effects.

In environments with GPU support, setting the SB Load Model device to GPU enables faster processing.

2. SDXL -> Color Adjustment -> HiDream Workflow

This is the workflow used to generate the illustrations.

ComfyUI full workflow diagram, showing the process of generating an illustration with SDXL, color adjustment with Super POP and HDR Effects, and redrawing with HiDream.

Models Used

About the HiDream Model

About the AI Upscale Model

The AI upscale model used in the workflow, IllustrationJaNai_V1_DAT2_190k, is not for commercial use. Please use a different model for commercial illustrations.

Custom Nodes

Here are the custom nodes used in this workflow.

ComfyUI-LayerStyle

ComfyUI manager search screen, searching for ‘layerstyle’ and displaying installable custom nodes.

ComfyUI-SuperBeasts

ComfyUI manager search screen, searching for ‘SuperBeasts’ and displaying installable custom nodes.

Summary: AI Auto Color Correction Is Convenient!

  • AI auto color correction is convenient.
  • LAB correction provides natural results.
  • HiDream responds effectively to color prompts.

Color expression is a critical element in AI illustrations.

Color adjustment involves many technical terms and can be challenging, but with the addition of the AI auto color correction node in ComfyUI-SuperBeasts, even beginners can easily adjust colors.

an animated female character with red hair and blue eyes wears a white top and a brown belt standing in a dimly lit cafe or restaurant with warm lighting and a view of the city at night surrounded

ComfyUI is highly extensible, with amazing custom nodes being released continuously, making it a great learning experience.

I look forward to continuing to pursue original expressions through ComfyUI.

Thank you for reading until the end!