ComfyUI Node
Mask to Coordinates V2 (SAM2)
Generate positive and negative SAM conditions using mask brush and colored brush.
Mask to Coordinates V2 (SAM2)
- mask
- image
- coordinates_positive
- coordinates_negative
◄threshold0.65►
◄max_regions50►
◄points_per_region1►
◄negative_colorred►
CategorylhyNodes/Mask
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | Mark on the mask to generate positive conditions. | |
| threshold | FLOAT | 0.650–1 | — |
| max_regions | INT | 501–100 | — |
| points_per_region | INT | 11–100 | — |
| negative_color | COMBO | red | red=#FF0000, green=#00FF00, blue=#0000FF, magenta=#FF00FF. |
| imageopt | IMAGE | Mark the image using a colored brush to generate negative conditions. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| coordinates_positive | STRING | — |
| coordinates_negative | STRING | — |