Nodes/Krea2_ComfyUI_Advanced/Eric Krea2 Negative Guidance
ComfyUI Node

Eric Krea2 Negative Guidance

NAG + NegPiP negative guidance for Multi-Stage Ultra's `guidance` socket.

By EricRollei·Created 3 months ago·Updated 3 days ago· 18
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)

    NameTypeDefaultDescription
    nagBOOLEANfalseNormalized Attention Guidance: steer AWAY from nag_negative inside attention - works at guidance 0 (Turbo), single pass + small overhead.
    nag_negativeSTRINGWhat to suppress, e.g. 'blurry, extra fingers, watermark'. Separate from Ultra's negative_prompt (that one is the CFG negative).
    nag_phiFLOAT4.00–20Extrapolation strength (z+ + phi (z+ - z-)).
    nag_tauFLOAT2.51–10Norm clamp: guided features may grow at most tau x the positive.
    nag_alphaFLOAT0.250–1Blend of the guided features into the positive ones.
    nag_stagesCOMBOs13 options: s1, s1_s2, all
    nag_sigma_startFLOAT1.000–1Apply NAG only while sigma is in [end, start].
    nag_sigma_endFLOAT0.000–1—
    negpipBOOLEANfalseNegPiP: (phrase:-1.0) in the prompt / edit instruction subtracts that concept (its attention values are flipped).
    negpip_modeCOMBOin_placein_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_strengthFLOAT1.000–8Multiplies every negative weight.
    negpip_block_startINT00–27—
    negpip_block_endINT270–27—
    negpip_text_fusionBOOLEANfalseAlso flip inside the text-fusion refiner attention (stronger).

    Outputs (1)

    NameTypeDescription
    guidanceKREA2_GUIDANCE—