SAM 2 vs BiRefNet vs RMBG 3.0: background removal (2027)

Bria.ai

SAM 2 vs BiRefNet vs RMBG 3.0: background removal (2027)

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.

  • 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.

  • 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.

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

  • 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

  • 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

Source: SAM 2 repo, BiRefNet card, RMBG 3.0 card, checked 2026-12-02.

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.

  • 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.

  • BiRefNet: the paper 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.

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: 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

Source: RMBG 3.0 card, BiRefNet readme, SAM 2 repo, checked 2026-12-02. The Bria API is the route for teams without a large GPU.

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 BiRefNet for MIT weights you can host and fine-tune.

  • Choose SAM 2 for click-to-select tools or video.

  • Add a measurement step: see how to measure background removal accuracy.

For the full list, read most accurate segmentation models for background removal.

Related posts

FAQs

Yes, with a prompt. SAM 2 is a promptable segmenter, so you give it a click or box, or use automatic mask generation, and it returns masks you can turn into a cutout. It does not pick the main subject for you the way a dedicated remover does. Bria did not benchmark it, so this guide makes no accuracy claim for it.

No source ranks SAM 2 against BiRefNet on the same images. SAM 2 reports video J&F scores on SA-V test, while BiRefNet reports DIS5K metrics such as an S-measure of .901 on 2,000 images. They use different datasets and tasks, so neither number ranks the other. Choose SAM 2 when someone clicks the subject, and BiRefNet for automatic cutouts. Compare them on your own files instead.

In Bria's benchmark, RMBG 3.0 ranked ahead of BiRefNet on hard images and beat it on most of them head to head. BiRefNet's own paper reports DIS5K metrics instead, so the two results come from different tests and judges. The benchmark is run by Bria, so read it as a vendor's result, and test both models on your own files before you decide.

The three models fit different delivery routes. SAM 2 checkpoints are Apache 2.0 and BiRefNet weights are MIT, so you can host both yourself. 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. Licenses can differ per checkpoint or variant, so read the card or repo for the exact weights you plan to use.

Follow us on social media

discord
Social media logo
Social media card
Social media logo
Social media card
Social media logo