Nodes/ComfyUI-Anima-NAG/Anima Normalized Attention Guidance
ComfyUI Node

Anima Normalized Attention Guidance

Experimental NAG patch for Anima Preview 3. It wraps the optimized_attention path instead of searching SD/SDXL BasicTransformerBlock.attn2 modules.

By hybskgks28275·Created 3 months ago·Updated 3 months ago· 4
Anima Normalized Attention Guidance
  • model
  • model
scale2.0
tau2.5
alpha0.50
start_percent0.00
end_percent1.00
only_animatrue
optimize_outside_rangetrue
CategoryAnima/Guidance

Inputs (8)

NameTypeDefaultDescription
modelMODELAnima Preview 3 model to patch.
scaleFLOAT2.00–100NAG scale. Higher values push away from the negative branch more strongly.
tauFLOAT2.50.01–100Normalization threshold. Higher values allow stronger guidance.
alphaFLOAT0.500–1Blend between original positive attention and normalized guided attention.
start_percentFLOAT0.000–1Relative sampling progress to start applying NAG. 0.0 is the first step.
end_percentFLOAT1.000–1Relative sampling progress to stop applying NAG. 1.0 is the last step.
only_animaBOOLEANtrueWhen enabled, do nothing unless the model is detected as image_model='anima'.
optimize_outside_rangeBOOLEANtrueWhen enabled, steps outside the NAG percent range compute only the positive branch. This preserves CFG=1 turbo workflows and makes partial ranges faster.

Outputs (1)

NameTypeDescription
modelMODEL