Nodes/ComfyUI-BCNodes/BiRefNet Remove Background
ComfyUI Node

BiRefNet Remove Background

A ComfyUI node in BCNodes/mask with 9 inputs and 3 outputs.

By 0xBeycan·Created 3 days ago·Updated a day ago· 0
BiRefNet Remove Background
  • image
  • background_color
  • IMAGE
  • MASK
  • MASK_IMAGE
◄modelBiRefNet-general►
◄sensitivity1.00►
◄mask_blur0►
◄mask_offset0►
◄invert_outputfalse►
◄refine_foregroundfalse►
◄backgroundAlpha►
CategoryBCNodes/mask

Inputs (9)

NameTypeDefaultDescription
imageIMAGE—
modelCOMBOBiRefNet-general11 options: BiRefNet-general, BiRefNet_512x512, BiRefNet-HR, BiRefNet-portrait, BiRefNet-matting, BiRefNet-HR-matting, +5
sensitivityoptFLOAT1.000–1Below 1 the matte is amplified, so faint areas count as foreground.
mask_bluroptINT00–64Gaussian blur of the matte edges, in pixels.
mask_offsetoptINT0-20–20Grow (positive) or shrink (negative) the matte, one pixel per step.
invert_outputoptBOOLEANfalseKeep the background instead of the subject.
refine_foregroundoptBOOLEANfalseHarden the matte edge and scale the colours by it, for cleaner cut-outs on transparent output.
backgroundoptCOMBOAlphaAlpha: RGBA output with the matte as alpha. Color: RGB output over background_color.
background_coloroptCOLOR#222222Used when background is Color.

Outputs (3)

NameTypeDescription
IMAGEIMAGE—
MASKMASK—
MASK_IMAGEIMAGE—