Back to Gap Map Infrastructure / Classic ML & computer vision

BiRefNet

ZhengPeng7
open source / Overall score: 4.0(strong)

High-resolution dichotomous image segmentation model that separates a foreground object from its background, widely used for background removal and matting. Its Bilateral Reference design refines a coarse mask with high-resolution image patches and gradient cues. Checkpoints cover general use, a lighter model, 2K inputs, matting, portraits, camouflaged and salient objects, with training code in the repository.

Openness

5 medium confidence
5.0
weights
open (16 checkpoints on the Hub, none gated)
data
open (public segmentation benchmarks (DIS5K for the main model; DUTS, P3M-10k and others for the variants))
code
open (training, loss and dataset code in the repository)
license
MIT (code and weights)

Code and weights are MIT-licensed, the training scripts are in the repository, and the main model was trained on DIS5K, a public dataset, with the variants adding other public matting and saliency sets. A few of those sets were not checked individually, which is why confidence is medium.

Adoption

4 high confidence
4.0

Hugging Face downloads over the trailing 30 days for the two declared checkpoints, the general model and the lite model; the other ZhengPeng7 checkpoints add comparatively little.

Capability

4 medium confidence
4.0

BiRefNet cuts the main subject out of any photo straight away, with no label set to retrain for, so a user's own images get a result from the shipped model directly. It does one task, foreground extraction, where Ultralytics spans many.

Verified 2026-09-27