Nodes/ComfyUI LC MaskMaker Nodes/LC Touch Mask (BETA) πŸ‘†
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.

By lonecatone23Β·Created about a month agoΒ·Updated about 10 hours agoΒ· 9
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)

NameTypeDefaultDescription
imageIMAGEPicture to mask. A Load Image upstream shows up right away, anything else after one run.
sam3_modelCOMBOFinds the edges. The same SAM 3 model LC Segment Anything and LC Smart Detailer use.
person_partsCOMBOOn 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.
blockBOOLEANfalseif_empty_mask: when nothing is selected, everything downstream stops so you can select, then queue again.
growINT0-256–256Grow (or shrink, below 0) the finished mask by this many pixels.
featherFLOAT0.00–200Edge softness in pixels.
invertBOOLEANfalseFlip the mask (everything but the selection).
selectionsSTRING[]Internal: what you drew and tapped.
thresholdFLOAT0.500.05–0.95How sure a pixel must be to join. Lower takes in more (wispy hair, soft edges), higher is tighter.
smoothINT20–16Cleans the edge: fills pinholes, drops stray specks and rounds jagged edges, without shrinking the selection. 0 = raw.
refineCOMBOguided_filterEdge 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)

NameTypeDescription
control_imageIMAGEβ€”
control_maskMASKβ€”