ComfyUI Custom Node for a/'Golden Noise for Diffusion Models: A Learning Framework' and most of the code is adapted from a/here. This node refines the initial latent noise in the diffusion process, enhancing both image quality and semantic coherence.
ComfyUI Custom Node for "Golden Noise for Diffusion Models: A Learning Framework". Most of the code for this node is adapted from here. This node refines the initial latent noise in the diffusion process, enhancing both image quality and semantic coherence.
cd ComfyUI/custom_nodes
git clone https://github.com/LucipherDev/ComfyUI-Golden-Noise
cd ComfyUI-Golden-Noise
pip install -r requirements.txt
Download the safetensors of the pre-trained NPNet weights of Stable Diffusion XL, DreamShaper-xl-v2-turbo, and Hunyuan-DiT from Huggingface LucipherDev/Golden-Noise-NPNets and put them in the models/npnets folder.
The node can be found in "sampling/custom_sampling/noise" category as "GoldenNoise".
Take a look at the example workflow for more info.
*Comparisons from the node
This is a small comparison with only 50 images for each prompt, with and without using the golden noise node. The images were generated using the provided workflow (the random noise used to generate the first image is fed into the GoldenNoise node to generate the golden noise), and then each image was scored using ImageReward. The mean scores for with and without the node are shown in the comparison. From this, we can see that when using the node, the overall image quality is increased. However, The sample size is admittedly small, but it's all I can do with the resources and time I have.
Another comparison. This is taken from the original paper. *Comparisons from the original paper
Original Paper.
@misc{zhou2024goldennoisediffusionmodels,
title={Golden Noise for Diffusion Models: A Learning Framework},
author={Zikai Zhou and Shitong Shao and Lichen Bai and Zhiqiang Xu and Bo Han and Zeke Xie},
year={2024},
eprint={2411.09502},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2411.09502},
}