Nodes/ComfyUI_LC_MaskMaker_nodes/LC Person Mask 🧍
ComfyUI Node

LC Person Mask 🧍

Select parts of a person: face, hair, body, clothes, accessories, background. Segformer or MediaPipe, with optional guided filter / VITMatte refine.

By lonecatone23Β·Created 6 days agoΒ·Updated about 10 hours agoΒ· 0
LC Person Mask 🧍
  • image
  • cutout
  • mask
  • raw_mask
β—„enginesegformerβ–Ί
β—„segformer_modelβ–Ύβ–Ί
β—„facetrueβ–Ί
β—„hairfalseβ–Ί
β—„bodyfalseβ–Ί
β—„clothesfalseβ–Ί
β—„accessoriesfalseβ–Ί
β—„backgroundfalseβ–Ί
β—„confidence0.40β–Ί
β—„refinevitmatteβ–Ί
β—„vitmatte_modelβ–Ύβ–Ί
β—„edge_erode10.0β–Ί
β—„edge_dilate10.0β–Ί
β—„black_point0.010β–Ί
β—„white_point0.990β–Ί
β—„max_megapixels2.00β–Ί
CategoryLC MaskMaker/mask

Inputs (17)

NameTypeDefaultDescription
imageIMAGEImage with a person in it.
engineCOMBOsegformersegformer: higher resolution. Body = arms and legs only (bare torso and neck read as clothes). mediapipe: body includes torso and neck skin. Needs the mediapipe package.
segformer_modelCOMBOUsed by the segformer engine. Entries marked 'Download' are fetched the first time you run.
faceBOOLEANtrueβ€”
hairBOOLEANfalseβ€”
bodyBOOLEANfalseSkin below the face. See engine for what counts.
clothesBOOLEANfalseβ€”
accessoriesBOOLEANfalseHats, glasses, shoes, bags (and whatever else the model calls an accessory).
backgroundBOOLEANfalseβ€”
confidenceFLOAT0.400.05–0.95How sure the model must be. Lower grows the selection, higher shrinks it.
refineCOMBOvitmatteEdge refinement of the raw mask. vitmatte is best for hair, guided_filter is fast, none keeps the raw mask.
vitmatte_modelCOMBOOnly used when refine is vitmatte.
edge_erodeFLOAT10.00–1024Trimap: how far the sure-foreground is pulled in from the mask edge (pixels).
edge_dilateFLOAT10.00–1024Trimap: how far the unknown band reaches out past the mask edge (pixels).
black_pointFLOAT0.0100–0.999Mask values at or below this become 0.
white_pointFLOAT0.9900.001–1Mask values at or above this become 1.
max_megapixelsFLOAT2.000.25–16vitmatte only. Larger images are matted at this size, then scaled back.

Outputs (3)

NameTypeDescription
cutoutIMAGEβ€”
maskMASKβ€”
raw_maskMASKβ€”