Nodes/ComfyUI_LC_MaskMaker_nodes/LC Remove Background ✂️
ComfyUI Node

LC Remove Background ✂️

Remove the background with BiRefNet. Outputs an RGBA cutout, the mask, and the subject on a solid color. Optional guided filter or VITMatte refine.

By lonecatone23·Created 6 days ago·Updated about 10 hours ago· 0
LC Remove Background ✂️
  • image
  • cutout
  • mask
  • on_background
◄model▾►
◄refinenone►
◄vitmatte_model▾►
◄grow0.0►
◄edge_erode10.0►
◄edge_dilate10.0►
◄black_point0.000►
◄white_point1.000►
◄feather0.0►
◄max_megapixels2.00►
◄backgroundblack►
CategoryLC MaskMaker/mask

Inputs (12)

NameTypeDefaultDescription
imageIMAGEImage to cut the subject out of.
modelCOMBOBackground removal model. The license is in the label. Entries marked 'Download' are fetched the first time you run.
refineCOMBOnonenone: use the model's mask as is. guided_filter: fast, snaps the edge to the image. vitmatte: matting model for hair and fine detail.
vitmatte_modelCOMBOOnly used when refine is vitmatte.
growFLOAT0.0-512–512Pixels to grow (positive) or shrink (negative) the mask before refining.
edge_erodeFLOAT10.00–1024Refine trimap: how far the sure-foreground area is pulled in from the mask edge. Smaller = tighter.
edge_dilateFLOAT10.00–1024Refine trimap: how far the unknown band reaches past the mask edge. Smaller = tighter.
black_pointFLOAT0.0000–0.999Mask values at or below this become 0. Raise it to clear faint background haze.
white_pointFLOAT1.0000.001–1Mask values at or above this become 1. Lower it to solidify the subject.
featherFLOAT0.00–100Final edge softness in pixels.
max_megapixelsFLOAT2.000.25–16vitmatte only. Larger images are matted at this size, then scaled back.
backgroundCOMBOblackColor behind the subject in the on_background output.

Outputs (3)

NameTypeDescription
cutoutIMAGE—
maskMASK—
on_backgroundIMAGE—