ComfyUI Node

Auto Background Mask

A ComfyUI node in mask with 8 inputs and 1 output.

By diffussy69·Created 10 months ago·Updated 9 months ago· 2
Auto Background Mask
  • image
  • background_mask
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 (1)

NameTypeDescription
background_maskMASK