Nodes/ComfyUI-AlchemicaSampler/⚗ Alchemica · Attention guidance (NAG / SEG / PAG)
ComfyUI Node

⚗ Alchemica · Attention guidance (NAG / SEG / PAG)

Attention guidance for Krea 2: NAG (a negative prompt that works at cfg 1) and SEG/PAG (structure).

By Nessuno76·Created 2 days ago·Updated 2 days ago· 1
⚗ Alchemica · Attention guidance (NAG / SEG / PAG)
  • model
  • negativo
  • model
  • report
◄nag_scala3.0►
◄nag_tau2.5►
◄nag_alpha0.25►
◄nag_blocchitutti►
◄nag_sigma_da-1.00►
◄nag_sigma_a0.00►
◄strutturaspenta►
◄struttura_scala0.00►
◄struttura_blocchi8-19►
◄seg_sfocatura10.0►
◄struttura_sigma_da-1.00►
◄struttura_sigma_a0.00►
Category⚗ AlchemicaMente/sampling

Inputs (14)

NameTypeDefaultDescription
modelMODEL—
nag_scalaFLOAT3.00–20NAG: strength of the negative at cfg 1. 0 = off. Validated: 3 (the unwanted element disappears, image unchanged)
nag_tauFLOAT2.51–10NAG: norm limit (how far it may move away from the positive)
nag_alphaFLOAT0.250–1NAG: blend with the original attention
nag_blocchiSTRINGtuttiDiT blocks (0-27): 'tutti' (all), '0-13', '5,8,10-12'
nag_sigma_daFLOAT-1.00-1–1NAG active from this sigma downwards. 1.0 = from the start (may change the composition). -1 = from the profile's hand-off sigma (~0.87): removes the negative WITHOUT changing the composition
nag_sigma_aFLOAT0.000–1NAG active down to this sigma
strutturaCOMBOspentaPAG = identity attention: crisper, more contrasty rendering (measured: scale 1 from -1, image unchanged, fewer freckles). SEG = blurred queries: halos above 0.3. Each costs 1 extra model call per step inside the window
struttura_scalaFLOAT0.00-5–10Strength of the structure guidance. 0 = off
struttura_blocchiSTRING8-19—
seg_sfocaturaFLOAT10.00.5–1000SEG: gaussian sigma in tokens (>=1000 = infinite)
struttura_sigma_daFLOAT-1.00-1–1Structure guidance window: from this sigma... (-1 = from the profile)
struttura_sigma_aFLOAT0.000–1...down to this one (costs only inside the window)
negativooptCONDITIONINGThe negative for NAG (from the ⚗ Text node)

Outputs (2)

NameTypeDescription
modelMODEL—
reportSTRING—