<aside> 🛠
High-Quality Background Removal & Subject Cutout
Every photo editor has a "remove background" button, and every one of them falls apart on the hard parts — flyaway strands of hair, the gaps between tree branches, lace, fur, mesh. BiRefNet is the automatic, AI-powered version of that button, but built to nail exactly those tricky edges at high resolution, producing clean transparent cutouts at professional quality. It's one of the most popular open-source tools for the job, developed by ZhengPeng7 and published in CAAI Artificial Intelligence Research (2024).
🏆 ~787,000 downloads/month — one of the most-used segmentation models on Hugging Face, with state-of-the-art results on DIS, HRSOD, and COD benchmarks
</aside>
BiRefNet looks at a photo, figures out what the main subject is, and creates a precise outline around it so you can lift that subject off its background. Think of it as an automatic, AI-powered version of the "remove background" button you see in photo editing tools, but with far better quality. It excels at the edges most tools get wrong: individual strands of hair, the gaps between tree branches, lace, fur, mesh, and other fine details. It works at high resolution, which means the cutouts stay sharp and clean even on large images. BiRefNet is widely considered one of the best free, open tools available for this job.
<aside>
<aside>
Outputs:
subject|object_0, (0 159 255), 0.987, bbox[0.0 0.0 639.0 426.0]
</aside>
<aside>
| Variant | Best For |
|---|---|
| General | Default all-round choice — best balance of quality and speed for most images (~0.2B params, 1024 × 1024) |
| HR | High-resolution variant — best for large or detail-heavy images where edge sharpness at high resolution matters most (~0.2B params) |
| Lite-2K | Lightweight 2K-resolution variant — much smaller and faster, great when you need higher throughput or are working on lower-spec hardware (44.4M params, 2K input) |
| Output quality | Top-tier among the best open-source models for clean cutouts |
| Benchmarks | State-of-the-art on DIS, HRSOD, and COD |
| Image size | Designed for high-resolution images (1024 × 1024 by default; larger versions available) |
| Popularity | One of the most-used segmentation models on Hugging Face (~787,000 downloads per month) |