ComfyUI Node

Auto Person Mask

A ComfyUI node in mask with 8 inputs and 2 outputs.

By diffussy69·Created 10 months ago·Updated 9 months ago· 2
Auto Person Mask
  • image
  • person_mask
  • masked_image
model
alpha_mattingfalse
alpha_matting_foreground_threshold240
alpha_matting_background_threshold10
alpha_matting_erode_size10
post_process_maskfalse
show_debugfalse
Categorymask

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
modelCOMBO4 options: u2net, u2netp, u2net_human_seg, silueta
alpha_mattingoptBOOLEANfalseBetter edge quality but slower
alpha_matting_foreground_thresholdoptINT2400–255
alpha_matting_background_thresholdoptINT100–255
alpha_matting_erode_sizeoptINT100–50
post_process_maskoptBOOLEANfalseClean up mask with morphological operations
show_debugoptBOOLEANfalse

Outputs (2)

NameTypeDescription
person_maskMASK
masked_imageIMAGE