Updated 2026-12-01
Bria wrote this guide and ran the RMBG 3.0 benchmark it quotes, so the Bria numbers are a vendor's. The benchmark used blind votes from professional and casual users plus a vision language model side by side, on 234 hard images at full resolution.
TL;DR
- Short answer: for automatic background removal, use a dedicated model such as RMBG 3.0 or BiRefNet. Use SAM 2 when a person or app can click on the subject.
Short answer: for automatic background removal, use a dedicated model such as or . Use when a person or app can click on the subject.
- Different jobs: SAM 2 is a promptable segmenter, BiRefNet is a dichotomous image segmenter, and RMBG 3.0 returns a background removal matte.
Different jobs: SAM 2 is a promptable segmenter, BiRefNet is a dichotomous image segmenter, and RMBG 3.0 returns a background removal matte.
- Bria's result: in Bria's benchmark, RMBG 3.0 ranked first of 6 with an average rank of 1.51 across 234 hard images. SAM 2 was not benchmarked.
Bria's result: in Bria's benchmark, RMBG 3.0 ranked first of 6 with an average rank of 1.51 across 234 hard images. SAM 2 was not benchmarked.
- Licenses: SAM 2 checkpoints are Apache 2.0, BiRefNet is MIT, and RMBG 3.0 weights are CC BY-NC 4.0.
Licenses: SAM 2 checkpoints are Apache 2.0, BiRefNet is MIT, and RMBG 3.0 weights are CC BY-NC 4.0.
- Size: SAM 2 checkpoints run from 38.9 to 224.4 (millions, README Size (M) column). RMBG 3.0 has 8B parameters.
Size: SAM 2 checkpoints run from 38.9 to 224.4 (millions, README Size (M) column). RMBG 3.0 has 8B parameters.
Is SAM 2 better than a dedicated background remover?
SAM 2 is not a drop-in background remover, because it was built to segment whatever you point at, not to find the main subject.
The Segment Anything paper describes a promptable model trained on over 1 billion masks across 11M licensed, privacy-respecting images. SAM 2 extends it to video and reports it as more accurate and 6x faster than SAM on images. Neither abstract positions the model as a background remover.
How do the three models differ?
SAM 2 needs a prompt, BiRefNet and RMBG 3.0 do not.
- Task; SAM 2: Promptable segmentation; BiRefNet: Dichotomous image segmentation; RMBG 3.0: Background removal
Task; SAM 2: Promptable segmentation; BiRefNet: Dichotomous image segmentation; RMBG 3.0: Background removal
- Input; SAM 2: Image plus click or box, or automatic mask generation; BiRefNet: Image; RMBG 3.0: Image
Input; SAM 2: Image plus click or box, or automatic mask generation; BiRefNet: Image; RMBG 3.0: Image
- License of weights; SAM 2: Apache 2.0; BiRefNet: MIT; RMBG 3.0: CC BY-NC 4.0
License of weights; SAM 2: Apache 2.0; BiRefNet: MIT; RMBG 3.0: CC BY-NC 4.0
- Size; SAM 2: 38.9 to 224.4 (millions, Size (M) column); BiRefNet: 220,700,242 parameters; RMBG 3.0: 8B parameters
Size; SAM 2: 38.9 to 224.4 (millions, Size (M) column); BiRefNet: 220,700,242 parameters; RMBG 3.0: 8B parameters
- Accuracy evidence; SAM 2: Video benchmarks (J&F); BiRefNet: DIS5K paper metrics; RMBG 3.0: Bria's benchmark, 234 images
Accuracy evidence; SAM 2: Video benchmarks (J&F); BiRefNet: DIS5K paper metrics; RMBG 3.0: Bria's benchmark, 234 images
How does a prompt change the result?
A prompt tells SAM 2 which object to cut, so one image can give several different masks.
In the repo, SAM2ImagePredictor takes an image with set_image and prompts with predict, and automatic mask generation is also supported. That is an advantage for an editor where the user picks the object. It is a cost for a pipeline that must cut thousands of product photos with no one clicking.
- Interactive tool: a click picks the subject and a second click can fix it.
Interactive tool: a click picks the subject and a second click can fix it.
- Batch pipeline: a fixed rule or a second model must choose the prompt.
Batch pipeline: a fixed rule or a second model must choose the prompt.
What does each model measure itself on?
Each model reports a different metric on a different dataset, so the numbers do not line up.
- SAM 2: the repo reports J&F scores on video sets, on SA-V test for the SAM 2.1 checkpoints.
SAM 2: the repo reports J&F scores on video sets, on SA-V test for the SAM 2.1 checkpoints.
- BiRefNet: the paper reports DIS5K metrics, for example an S-measure of .901 on the 2,000 DIS-TE images.
BiRefNet: the reports DIS5K metrics, for example an S-measure of .901 on the 2,000 DIS-TE images.
- RMBG 3.0: Bria reports average rank across 234 hard images.
RMBG 3.0: Bria reports average rank across 234 hard images.
SAM 2 and BiRefNet publish no scores on Bria's 234 images or on each other's sets. Bria's benchmark includes BiRefNet but not SAM 2: BiRefNet ranked sixth of 6 at 3.56, and RMBG 3.0 beat it on 137 images and lost on 16, with 81 ties.
What does each model output?
RMBG 3.0 outputs a single-channel 8-bit matte, and BiRefNet's sample code turns its mask into an alpha channel.
The RMBG 3.0 card describes a true 8-bit alpha matte with anti-aliased edges, which matters for hair and soft edges. BiRefNet's card sample applies a sigmoid to the prediction and writes it as alpha. A binary mask from any model gives hard edges, so check each cutout on a dark and a light background.
Which hardware do they need?
RMBG 3.0 needs a GPU with 32 GB or more, while BiRefNet lists 4.8 GB at FP32.
- Model: RMBG 3.0; Size: 8B parameters; GPU memory: 32 GB or more, measured peak 28.5 GiB
Model: RMBG 3.0; Size: 8B parameters; GPU memory: 32 GB or more, measured peak 28.5 GiB
- Model: BiRefNet; Size: 220,700,242 parameters; GPU memory: 4.8 GB at FP32, 3.5 GB at FP16
Model: BiRefNet; Size: 220,700,242 parameters; GPU memory: 4.8 GB at FP32, 3.5 GB at FP16
- Model: SAM 2; Size: 38.9 to 224.4 (millions, Size (M) column); GPU memory: No figure listed in the repo
Model: SAM 2; Size: 38.9 to 224.4 (millions, Size (M) column); GPU memory: No figure listed in the repo
Can you fine-tune BiRefNet on your own images?
Yes, the BiRefNet readme includes a fine-tuning guide for custom data, and its weights are MIT licensed.
RMBG 3.0 weights are CC BY-NC 4.0, so commercial use needs an agreement with Bria, and the Bria API is the commercial route. Bria did not benchmark SAM 2, and this guide makes no claim about adapting it.
Which should you choose?
Choose by whether a human prompts the model and whether you need commercial use.
- Choose RMBG 3.0 through the Bria API (see pricing) for hands-off cutouts on hard images.
Choose RMBG 3.0 through the Bria API (see pricing) for hands-off cutouts on hard images.
- Choose BiRefNet for MIT weights you can host and fine-tune.
Choose BiRefNet for MIT weights you can host and fine-tune.
- Choose SAM 2 for click-to-select tools or video.
Choose SAM 2 for click-to-select tools or video.
- Add a measurement step: see how to measure background removal accuracy.
Add a measurement step: see how to measure background removal accuracy.
For the full list, read most accurate segmentation models for background removal.










