Diffusion CG
Color Grading for Stable Diffusion
Nodes (12)
A KSampler that pulls color back to neutral while it samples
KSampler XL with built-in color recentering for SDXL
Color grading done inside the sampler, not in post
The kill switch for a global color effect
A conditioning wire that switches recentering on
Recentering for SDXL from the conditioning path
Stop blown-out latent channels before the VAE decodes them
The SDXL-only, no-toggle version
Keep your KSampler, fix the color cast anyway
SDXL's YCbCr recenter — color grading without touching the sampler
Min, max, and mean for each channel
The manual off switch for a sampling hook
ComfyUI Diffusion Color Grading
This is a Custom Node for ComfyUI, which performs "Color Grading" during the generation, producing a more neutral and balanced, but also vibrant and contrasty color.
For more information, check out the original Extension for Automatic1111 Webui
How to Use
- Attach the Diffusion CG node between
Empty LatentandKSamplernodes - Adjust the recenter and normalization sliders as needed
[!Important] The effects are "global." If you want to disable it during other parts of the workflow (e.g. during
Hires. Fix), you can add the Disable CG node to reset the parameters back to0.0
Examples
<p align="center"> <img src="examples/off.jpg" width=384> <img src="examples/on.png" width=384> <br><code>Off | On</code> </p>[!Tip] The
on.pngcontains Workflow
Known Issue
- Does not work with certain Samplers