ComfyUI Node
Eric Krea2 Negative Guidance
NAG + NegPiP negative guidance for Multi-Stage Ultra's `guidance` socket.
Eric Krea2 Negative Guidance
- guidance
◄nagfalse►
◄nag_negative►
◄nag_phi4.0►
◄nag_tau2.5►
◄nag_alpha0.25►
◄nag_stagess1►
◄nag_sigma_start1.00►
◄nag_sigma_end0.00►
◄negpipfalse►
◄negpip_modein_place►
◄negpip_strength1.00►
◄negpip_block_start0►
◄negpip_block_end27►
◄negpip_text_fusionfalse►
CategoryEric/Krea2
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| nag | BOOLEAN | false | Normalized Attention Guidance: steer AWAY from nag_negative inside attention - works at guidance 0 (Turbo), single pass + small overhead. |
| nag_negative | STRING | What to suppress, e.g. 'blurry, extra fingers, watermark'. Separate from Ultra's negative_prompt (that one is the CFG negative). | |
| nag_phi | FLOAT | 4.00–20 | Extrapolation strength (z+ + phi (z+ - z-)). |
| nag_tau | FLOAT | 2.51–10 | Norm clamp: guided features may grow at most tau x the positive. |
| nag_alpha | FLOAT | 0.250–1 | Blend of the guided features into the positive ones. |
| nag_stages | COMBO | s1 | 3 options: s1, s1_s2, all |
| nag_sigma_start | FLOAT | 1.000–1 | Apply NAG only while sigma is in [end, start]. |
| nag_sigma_end | FLOAT | 0.000–1 | — |
| negpip | BOOLEAN | false | NegPiP: (phrase:-1.0) in the prompt / edit instruction subtracts that concept (its attention values are flipped). |
| negpip_mode | COMBO | in_place | in_place (default, cleaner in tests): the phrase's tokens are flagged where they stand. lifted: the phrase is removed from the prompt and encoded on its own (the text encoder never reads it in context). |
| negpip_strength | FLOAT | 1.000–8 | Multiplies every negative weight. |
| negpip_block_start | INT | 00–27 | — |
| negpip_block_end | INT | 270–27 | — |
| negpip_text_fusion | BOOLEAN | false | Also flip inside the text-fusion refiner attention (stronger). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| guidance | KREA2_GUIDANCE | — |