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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | Anima Preview 3 model to patch. | |
| scale | FLOAT | 2.00–100 | NAG scale. Higher values push away from the negative branch more strongly. |
| tau | FLOAT | 2.50.01–100 | Normalization threshold. Higher values allow stronger guidance. |
| alpha | FLOAT | 0.500–1 | Blend between original positive attention and normalized guided attention. |
| start_percent | FLOAT | 0.000–1 | Relative sampling progress to start applying NAG. 0.0 is the first step. |
| end_percent | FLOAT | 1.000–1 | Relative sampling progress to stop applying NAG. 1.0 is the last step. |
| only_anima | BOOLEAN | true | When enabled, do nothing unless the model is detected as image_model='anima'. |
| optimize_outside_range | BOOLEAN | true | When 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)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |