Nodes/ComfyUI-RT-LTX2-RareTools/RT Qwen-Image-2.1 NAG
ComfyUI Node

RT Qwen-Image-2.1 NAG

Normalized Attention Guidance (NAG) for Qwen-Image-2.1, Wan, and DiT models. Injects negative prompt guidance into CFG = 1.0.

By monnky·Created 9 months ago·Updated a day ago· 16
RT Qwen-Image-2.1 NAG
  • model
  • conditioning
  • model
◄nag_scale11.0►
◄nag_alpha0.25►
◄nag_tau2.5►
◄input_typedefault►
CategoryRareTutor/Sampling

Inputs (6)

NameTypeDefaultDescription
modelMODELConnect input from model or LoRA loader.
conditioningCONDITIONINGNegative prompt conditioning to guide against (NAG reference direction).
nag_scaleFLOAT11.00–100Guidance strength against the negative conditioning. Default is 11.0.
nag_alphaFLOAT0.250–1Blend coefficient between NAG-guided attention and positive attention. Default is 0.25.
nag_tauFLOAT2.50–10L1 norm clipping threshold to prevent color burn and saturation. Default is 2.5.
input_typeCOMBOdefaultdefault: standard pair mode; batch: single conditioning mode for CFG=1 speed models.

Outputs (1)

NameTypeDescription
modelMODEL—