Nodes/comfyui-fvmtools/K2 Region Preview
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.

By ping1979ping·Created 5 months ago·Updated 21 days ago· 0
K2 Region Preview
  • regions
  • preview
  • union_mask
  • info
width1024
height1024
modefield
falloff_pixels128
subject_competitiontrue
subject_filltrue
CategoryFVM Tools/K2

Inputs (7)

NameTypeDefaultDescription
regionsK2_REGIONThe region chain to visualise.
widthINT102464–16384Preview width — use the render size so boxes match.
heightINT102464–16384Preview height — use the render size.
modeCOMBOfieldboxes: hard rasterized token masks. field: the soft attention field incl. subject competition. ownership: which subject owns each image token.
falloff_pixelsFLOAT1280–2048Must match the tuning value to preview the real field.
subject_competitionBOOLEANtruePreview overlapping-subject ownership sharing.
subject_fillBOOLEANtruePreview the stronger field towards box edges.

Outputs (3)

NameTypeDescription
previewIMAGE
union_maskMASK
infoSTRING