ComfyUI Node
LC Touch Mask (BETA) π
Mask one thing exactly: draw around it and SAM 3 finds its edges. Tap it to grow to the next bigger thing (face, + hair, head, person), double-tap to step back. Ctrl + draw cuts out.
LC Touch Mask (BETA) π
- image
- control_image
- control_mask
βsam3_modelβΎβΊ
βperson_partsβΎβΊ
βblockfalseβΊ
βgrow0βΊ
βfeather0.0βΊ
βinvertfalseβΊ
βselections[]βΊ
βthreshold0.50βΊ
βsmooth2βΊ
βrefineguided_filterβΊ
CategoryLC MaskMaker/mask
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Picture to mask. A Load Image upstream shows up right away, anything else after one run. | |
| sam3_model | COMBO | Finds the edges. The same SAM 3 model LC Segment Anything and LC Smart Detailer use. | |
| person_parts | COMBO | On a person, taps grow by body part (face, hair, head, clothes, person) with the Segformer model LC Person Mask uses. off: SAM 3 decides every step. | |
| block | BOOLEAN | false | if_empty_mask: when nothing is selected, everything downstream stops so you can select, then queue again. |
| grow | INT | 0-256β256 | Grow (or shrink, below 0) the finished mask by this many pixels. |
| feather | FLOAT | 0.00β200 | Edge softness in pixels. |
| invert | BOOLEAN | false | Flip the mask (everything but the selection). |
| selections | STRING | [] | Internal: what you drew and tapped. |
| threshold | FLOAT | 0.500.05β0.95 | How sure a pixel must be to join. Lower takes in more (wispy hair, soft edges), higher is tighter. |
| smooth | INT | 20β16 | Cleans the edge: fills pinholes, drops stray specks and rounds jagged edges, without shrinking the selection. 0 = raw. |
| refine | COMBO | guided_filter | Edge finish on the run (the preview shows the selection before it). guided_filter: fast, follows the picture's edges. vitmatte: best for hair, slower. none: the hard selection. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| control_image | IMAGE | β |
| control_mask | MASK | β |