What is BiRefNet?

BiRefNet is a model used for background removal and matting.

Formally, it is a model for Dichotomous Image Segmentation (DIS), which means splitting an image into foreground and background.

It is not like SAM, where you specify "this point", "this box", or "this object" to create a mask. Instead, it is good at producing high-quality cutout masks from subjects with complex details, such as hair or plants.


Model Download

📂ComfyUI/
└── 📂models/
    └── 📂background_removal/
        └── birefnet.safetensors

workflow

Background Removal

BiRefNet.json
  • Use Load Background Removal Model to load birefnet.safetensors.
  • Input the image and model into Remove Background to output a background-removal MASK.