ComfyUI Node
BiRefNet Remove Background
A ComfyUI node in BCNodes/mask with 9 inputs and 3 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| model | COMBO | BiRefNet-general | 11 options: BiRefNet-general, BiRefNet_512x512, BiRefNet-HR, BiRefNet-portrait, BiRefNet-matting, BiRefNet-HR-matting, +5 |
| sensitivityopt | FLOAT | 1.000–1 | Below 1 the matte is amplified, so faint areas count as foreground. |
| mask_bluropt | INT | 00–64 | Gaussian blur of the matte edges, in pixels. |
| mask_offsetopt | INT | 0-20–20 | Grow (positive) or shrink (negative) the matte, one pixel per step. |
| invert_outputopt | BOOLEAN | false | Keep the background instead of the subject. |
| refine_foregroundopt | BOOLEAN | false | Harden the matte edge and scale the colours by it, for cleaner cut-outs on transparent output. |
| backgroundopt | COMBO | Alpha | Alpha: RGBA output with the matte as alpha. Color: RGB output over background_color. |
| background_coloropt | COLOR | #222222 | Used when background is Color. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| MASK_IMAGE | IMAGE | — |