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).
⚗ 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)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| nag_scala | FLOAT | 3.00–20 | NAG: strength of the negative at cfg 1. 0 = off. Validated: 3 (the unwanted element disappears, image unchanged) |
| nag_tau | FLOAT | 2.51–10 | NAG: norm limit (how far it may move away from the positive) |
| nag_alpha | FLOAT | 0.250–1 | NAG: blend with the original attention |
| nag_blocchi | STRING | tutti | DiT blocks (0-27): 'tutti' (all), '0-13', '5,8,10-12' |
| nag_sigma_da | FLOAT | -1.00-1–1 | NAG 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_a | FLOAT | 0.000–1 | NAG active down to this sigma |
| struttura | COMBO | spenta | PAG = 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_scala | FLOAT | 0.00-5–10 | Strength of the structure guidance. 0 = off |
| struttura_blocchi | STRING | 8-19 | — |
| seg_sfocatura | FLOAT | 10.00.5–1000 | SEG: gaussian sigma in tokens (>=1000 = infinite) |
| struttura_sigma_da | FLOAT | -1.00-1–1 | Structure guidance window: from this sigma... (-1 = from the profile) |
| struttura_sigma_a | FLOAT | 0.000–1 | ...down to this one (costs only inside the window) |
| negativoopt | CONDITIONING | The negative for NAG (from the ⚗ Text node) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |
| report | STRING | — |