Discover and explore top open-source AI tools and projects—updated daily.
ChenDarYenUniversal negative guidance for diffusion models
Top 94.0% on SourcePulse
This project provides ComfyUI nodes for Normalized Attention Guidance (NAG), a technique that enhances negative prompting in diffusion models. It aims to improve image and video generation quality and control, particularly for few-step and multi-step sampling processes, benefiting users seeking finer control over generative AI outputs.
How It Works
NAG implements a novel approach to negative guidance by extrapolating attention features. This method restores effective negative prompting in few-step diffusion models and complements Classifier-Free Guidance (CFG) in multi-step sampling. The core advantage lies in its ability to provide stronger, more nuanced control over generated content without the typical artifacts associated with aggressive negative prompting.
Quick Start & Requirements
nag_scale, nag_tau, nag_alpha, nag_sigma_end. Tuning nag_tau and nag_alpha is recommended for new models, followed by nag_scale for guidance strength. nag_sigma_end can reduce computation../workflows directory.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README advises users to find optimal nag_tau and nag_alpha values for new models to avoid artifacts, indicating a potential tuning requirement. While it supports many models, specific performance or compatibility nuances may exist for less common configurations.
1 day ago
Inactive
madebyollin
LuChengTHU
luosiallen
openai
modelscope