A custom node for InvokeAI that provides background removal using BiRefNet (Bilateral Reference Network), a high-quality segmentation model that separates foreground objects from their backgrounds.
- Copy or clone this repository into the
nodesfolder found in your Invoke install location - Install the following requirements through the launcher console:
uv pip install timm kornia
- Restart Invoke and the node will appear in the image category under the name
Remove Background (BiRefNet).
Models are downloaded from Hugging Face on first use and cached locally. The initial run with a new model variant will take slightly longer while it downloads.
