ComfyUI Node
Text Region Masks
A ComfyUI node in ✨ LF Nodes/Regions with 4 inputs and 3 outputs.
Text Region Masks
- image
- masks
- regions
- ui_widget
- masks
- metadata
- mask_list
Category✨ LF Nodes/Regions
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Source image(s), all with the same spatial size. | |
| masks | MASK | Exactly N images × R regions, region-major: all images for each table row. SAM3 Detect: individual_masks=false. | |
| regions | JSON | Ordered JSON array [{id,prompt,priority}]. Higher priority wins; ties retain earlier rows. | |
| ui_widgetopt | LF_COMPARE | [object Object] | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| masks | MASK | Disjoint binary masks in image-major, then original region-table order. |
| metadata | JSON | Source size, region rows, image sets, areas, overlap losses and empty warnings. |
| mask_list | MASK | All masks as ordered [1,H,W] list items, including empty regions. |