ComfyUI Extension: ComfyUI-DCW-Diffusion-Color-Wavelets-Node
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A ComfyUI node implementation of the Dynamic Consistency Weighting (DCW) technique that enables high-quality image generation with drastically reduced inference steps.
Looking for a different extension?
Custom Nodes (0)
README
DCW ComfyUI Wrapper
A ComfyUI node implementation of the Dynamic Consistency Weighting (DCW) technique that enables high-quality image generation with drastically reduced inference steps.
What is DCW?
DCW is a post-processing technique that improves the quality of diffusion model without requiring retraining by leveraging wavelet-domain analysis.
Quick Start
Installation
- Clone this repository into your ComfyUI
custom_nodesfolder:
cd ComfyUI/custom_nodes
git clone https://github.com/DawnW0lf/ComfyUI-DCW-Diffusion-Color-Wavelets-Node.git
- Install dependencies:
cd comfyui-dcw
pip install -r requirements.txt
- Restart ComfyUI
Usage
- Load your favorite model
- Add the "Apply DCW (Wavelet Patch)" node to your workflow
- Connect your model to the node's input
How It Works
DCW applies a wavelet-domain correction to the diffusion model's predictions:
- Decompose: Split the input and output into wavelet components (low and high frequency)
- Correct: Blend the low-frequency components based on the current timestep
- Reconstruct: Inverse wavelet transform to get the corrected output
- Scale: Apply adaptive scaling based on the diffusion timestep
The technique is particularly effective because it:
- Preserves high-frequency details (textures, edges) from the model's natural output
- Intelligently refines low-frequency components (color, composition) using temporal information
- Adapts the correction strength based on where you are in the diffusion process
Parameters
- Model: The diffusion model to patch (required)
- Strength: Controls the intensity of DCW correction (0.0-4.0)
0.0: No correction, standard generation0.3: Recommended for ultra-fast 8-step generation1.0: Medium correction2.0+: Heavy correction (may introduce artifacts at very low steps)
- Wavelet: The wavelet basis to use
haar: Fastest, good general-purpose choicedb2: Finer detail preservationdb3: Maximum detail (slightly slower)
Latent Shape Handling
- Images:
[batch, channels, height, width](4D) - Videos:
[batch, channels, frames, height, width](5D)
The implementation automatically detects and handles both formats.
Credits
This implementation is based on the research from:
Original Paper & Code: AMAP-ML/DCW
- Licensed under CC-BY-NC-SA 4.0
ComfyUI Wrapper: Independent implementation for ComfyUI integration
The DCW technique was developed by the AMAP research team at NVIDIA.
License
This project is licensed under CC-BY-NC-SA 4.0 (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International).
This work is based on the DCW technique from AMAP-ML/DCW, which is also licensed under CC-BY-NC-SA 4.0.
What this means:
- ✅ You can use, modify, and distribute this code
- ✅ You must attribute the original DCW work
- ❌ You cannot use this for commercial purposes without permission from NVIDIA/AMAP-ML
- ✅ Any modifications must also be shared under CC-BY-NC-SA 4.0
Contributing
Contributions are welcome! Please feel free to:
- Report bugs and issues
- Suggest improvements
- Submit pull requests for enhancements
Citation
If you use this in research, please cite the original DCW paper:
@article{yu2026eluci,
title={Elucidating the SNR-t Bias of Diffusion Probabilistic Models},
author={Meng Yu and Lei Sun and Jianhao Zeng and Xiangxiang Chu and Kun Zhan},
journal={arXiv preprint arXiv:2604.16044},
year={2026}
}
Acknowledgments
- AMAP-ML and NVIDIA for the DCW technique
- ComfyUI for the amazing node framework
- PyTorch Wavelets for wavelet implementations
- Claude.ai for helping me write this
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.