Nodes/LF Nodes/Text Region Masks
ComfyUI Node

Text Region Masks

A ComfyUI node in ✨ LF Nodes/Regions with 4 inputs and 3 outputs.

By lucafoscili·Created 2 years ago·Updated 3 days ago· 36
Text Region Masks
  • image
  • masks
  • regions
  • ui_widget
  • masks
  • metadata
  • mask_list
Category✨ LF Nodes/Regions

Inputs (4)

NameTypeDefaultDescription
imageIMAGESource image(s), all with the same spatial size.
masksMASKExactly N images × R regions, region-major: all images for each table row. SAM3 Detect: individual_masks=false.
regionsJSONOrdered JSON array [{id,prompt,priority}]. Higher priority wins; ties retain earlier rows.
ui_widgetoptLF_COMPARE[object Object]—

Outputs (3)

NameTypeDescription
masksMASKDisjoint binary masks in image-major, then original region-table order.
metadataJSONSource size, region rows, image sets, areas, overlap losses and empty warnings.
mask_listMASKAll masks as ordered [1,H,W] list items, including empty regions.