ComfyUI Node
Remove Background Pixaroma
Remove an image background with a BiRefNet model and return the cutout (RGBA), the foreground mask, and the inverted mask in one node. Models load from ComfyUI/models/background_removal/. Filename controls preprocessing resolution: 'matt' or 'hr' in the name (case-insensitive) preprocesses at 2048; all others at 1024. Recommended names: birefnet.safetensors (standard), birefnet-hr.safetensors (HR), birefnet-matting.safetensors (HR matting for hair / fur). Downloads: https://huggingface.co/Comfy-Org/BiRefNet/tree/main/background_removal https://huggingface.co/ZhengPeng7/BiRefNet_HR https://huggingface.co/ZhengPeng7/BiRefNet_HR-matting
Remove Background Pixaroma
- image
- image
- mask
- inverted_mask
◄model▾►
Category👑 Pixaroma/🖼️ Image
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The image to remove the background from. | |
| model | COMBO | Which BiRefNet model to use. Filenames containing 'matt' or 'hr' run at 2048px (better for hair / fine edges); all others run at 1024px. Models live in ComfyUI/models/background_removal/. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The cutout image (RGBA) with the background made transparent. |
| mask | MASK | Mask where the kept foreground is white. |
| inverted_mask | MASK | Mask where the removed background is white (the foreground mask, inverted). |