ComfyUI Node
K2 Region Preview
Renders the region layout for inspection: hard boxes, the soft attention field per region, or the token ownership map used by strict isolation. Run this before generating — a wrong layout is much cheaper to spot here.
K2 Region Preview
- regions
- preview
- union_mask
- info
◄width1024►
◄height1024►
◄modefield►
◄falloff_pixels128►
◄subject_competitiontrue►
◄subject_filltrue►
CategoryFVM Tools/K2
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| regions | K2_REGION | The region chain to visualise. | |
| width | INT | 102464–16384 | Preview width — use the render size so boxes match. |
| height | INT | 102464–16384 | Preview height — use the render size. |
| mode | COMBO | field | boxes: hard rasterized token masks. field: the soft attention field incl. subject competition. ownership: which subject owns each image token. |
| falloff_pixels | FLOAT | 1280–2048 | Must match the tuning value to preview the real field. |
| subject_competition | BOOLEAN | true | Preview overlapping-subject ownership sharing. |
| subject_fill | BOOLEAN | true | Preview the stronger field towards box edges. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| preview | IMAGE | — |
| union_mask | MASK | — |
| info | STRING | — |