Best open source background removal model in 2027: 5 compared
Bria.ai

Updated 2026-12-01
TL;DR
Short answer: Pick the model by the job. BiRefNet (MIT) is the pick if you need MIT weights and documented high-resolution variants, and MODNet (Apache-2.0) if you need portrait matting. No benchmark ranks them against each other. Bria's RMBG 3.0 weights are CC BY-NC 4.0, so it is not open source.
General and high resolution: BiRefNet publishes variants trained at 2048 x 2048 and at 256 to 2304 pixels (checked 2026-12-02).
Portraits only: MODNet is trimap-free portrait matting from RGB input, and its last commit is dated 2022-07-29.
Refiner pipeline: BEN2's base model is MIT, and the vendor offers a separate commercial model.
Commercial work: RMBG 3.0 weights need an agreement with Bria. The API costs $0.018 per image (checked 2026-12-02).
What is the best open source background removal model right now?
BiRefNet is the pick if you need MIT weights and documented high-resolution variants, and MODNet if you need Apache-2.0 portrait matting. No benchmark ranks them against each other, and RMBG 3.0, which leads in Bria's benchmark, is not open source.
An open source model publishes its weights under a license that allows use, change and sharing. Bria wrote this article and ran the benchmark it cites, so read it as a vendor view. The benchmark combines blind votes from professional and casual users with a VLM side-by-side comparison, on 234 hard images at full resolution.
In Bria's benchmark, RMBG 3.0 ranked first of 6 models with an average rank of 1.51 across 234 hard images, and BiRefNet ranked sixth (method and leaderboard). The three other models below were not benchmarked. This article groups the five by what each was built for. It gives no legal advice, so read each license yourself.
How do the five models compare?
Five models cover five jobs, and only RMBG 3.0 has weights that are not open source.
#: 1; Model: RMBG 3.0; Built for: Hard images, full resolution; License of weights: CC BY-NC 4.0, not open source; Parameters: 8B; Rank in Bria's benchmark (of 6): 1
#: 2; Model: BiRefNet; Built for: General use, high resolution; License of weights: MIT; Parameters: 0.2B; Rank in Bria's benchmark (of 6): 6
#: 3; Model: BEN2 base; Built for: Matting with a refiner; License of weights: MIT; Parameters: 94.6M; Rank in Bria's benchmark (of 6): not benchmarked
#: 4; Model: MODNet; Built for: Portraits; License of weights: Apache-2.0; Parameters: not found; Rank in Bria's benchmark (of 6): not benchmarked
#: 5; Model: IS-Net (DIS repository); Built for: Research, general-use checkpoint; License of weights: Apache-2.0; Parameters: not found; Rank in Bria's benchmark (of 6): not benchmarked
Source: the RMBG 3.0, BiRefNet and BEN2 model cards, the MODNet and DIS repositories, all checked 2026-12-02. Ranks are from Bria's benchmark. BEN2's count is the safetensors total shown on its card.
Which five models are worth shortlisting?
Start with RMBG 3.0 for quality in Bria's benchmark, then choose among open source models by the job in the second column of the table.
1. RMBG 3.0 (Bria): best for hard images
RMBG 3.0 is Bria's top-ranked background removal model, with 8B parameters and weights on Hugging Face.
Where it wins: It holds the top rank in the table above, from Bria's benchmark. Its output is a single-channel 8-bit matte, which you can threshold or use as it is.
What to know: The weights are released under CC BY-NC 4.0, and the card says commercial use requires a separate agreement with Bria. It is not open source. The card lists GPU memory of 32 GB or more. The commercial path is the Bria API at $0.018 per image for RMBG 3.0 (checked 2026-12-02).
When to shortlist it: You want the top rank in Bria's benchmark and will use the API for production.
2. BiRefNet: best for MIT weights and high-resolution variants
BiRefNet is a 0.2B parameter model with an MIT license. Its paper is titled "Bilateral Reference for High-Resolution Dichotomous Image Segmentation".
Where it wins: The repository README lists variants for different needs: BiRefNet_lite-2K takes 2560 x 1440 input, BiRefNet_HR was trained at 2048 x 2048, and BiRefNet_dynamic was trained from 256 x 256 to 2304 x 2304. It also lists matting variants and a fine-tuning guide for custom data.
Where it falls short: It ranked sixth of 6 in Bria's benchmark, with an average rank of 3.56. The model card gives no memory figure, though the README lists 4.8 GB for FP32 inference, and its sample code assumes a CUDA GPU.
When to shortlist it: You need MIT licensed weights, a choice of resolutions and the option to fine-tune.
3. BEN2 base: best for a refiner on uncertain pixels
BEN2 is a background erase model whose card lists an MIT license and 94,632,322 parameters.
Where it wins: Its Confidence Guided Matting pipeline uses a refiner network on pixels where the base model is less confident.
Where it falls short: It was not part of Bria's benchmark. The card says only the base model is open source, and the vendor offers a commercial model by email. The README notes that its optional refine step increases inference time.
When to shortlist it: You want an MIT licensed base model and can test edge quality yourself.
4. MODNet: best for Apache-2.0 portrait matting
MODNet is a model for real-time portrait matting from RGB input alone, with no trimap. Its paper appeared at AAAI 2022.
Where it wins: The README states that the code, models and demos are under the Apache License 2.0. It includes ONNX conversion code.
Where it falls short: It targets portraits, so it is a narrow choice for products or scenes. This is scope, not a measured loss. The last commit on its default branch is dated 2022-07-29, and it was not benchmarked.
When to shortlist it: Your images are people and you want a permissively licensed model.
5. IS-Net from the DIS repository: best for research baselines
The DIS repository hosts the ECCV 2022 dichotomous image segmentation work and its IS-Net model, under Apache-2.0.
Where it wins: It released isnet-general-use.pth on 2022-08-17 as a general-use checkpoint, and its DIS5K dataset covers more than 200 categories.
Where it falls short: The README says the released academic model was trained on DIS V1.0, which includes very few animals, humans and cars, so it may not work well on them. It was not benchmarked.
When to shortlist it: You need a documented academic baseline or a permissive license on a research model.
Which model is best for portraits?
MODNet is built for portraits, and BiRefNet's repository also lists a portrait matting task, so test both on your own people photos.
MODNet predicts an alpha matte from an RGB image with no trimap, which is a hand-drawn guide. BiRefNet's README lists a portrait matting model trained on the P3M-10k and humans datasets. Bria's benchmark has no portrait-only ranking, so none is given here. Run both on 20 of your own images before you commit.
How much GPU memory do the models need?
Only two of the five publish a memory figure: 32 GB or more for RMBG 3.0 and 4.8 GB for BiRefNet in FP32.
Model: RMBG 3.0; GPU memory as published: 32 GB or more; Source: Model card
Model: BiRefNet; GPU memory as published: 4.8 GB inference in FP32, 3.5 GB in FP16 or BF16; Source: Repository README
Model: BEN2 base; GPU memory as published: not found; Source: Card and README
Model: MODNet; GPU memory as published: not found; Source: README
Model: IS-Net; GPU memory as published: not found; Source: README
Source: the model cards and READMEs linked above, checked 2026-12-02. Memory depends on input size and precision, so measure on your own hardware.
What does each model output?
RMBG 3.0, BiRefNet and MODNet predict a matte, and BEN2's sample code returns a foreground image.
Model: RMBG 3.0; Output as described: Single-channel 8-bit matte
Model: BiRefNet; Output as described: A mask: the sample code applies a sigmoid and sets it as the alpha channel
Model: BEN2 base; Output as described: A foreground image from
model.inference(image), saved as foreground.pngModel: MODNet; Output as described: An alpha matte
Model: IS-Net; Output as described: Not stated in the README
Source: model cards and READMEs, checked 2026-12-02. A matte is a grayscale image where each pixel says how much of it is subject, so soft edges survive.
Is RMBG 3.0 open source?
No: RMBG 3.0 weights are released under CC BY-NC 4.0 for non-commercial use, and commercial use needs a separate agreement with Bria.
The weights are released under CC BY-NC 4.0 for non-commercial use, per the model card. For production use, the Bria API includes the commercial license and is the path for RMBG 3.0. The card says RMBG 3.0 was trained exclusively on licensed data, and Bria RMBG gives a broader view.
If you must host a model yourself for commercial work, read the license on each open source model above, because the license sits on the weights as well as the code. This is not legal advice.
Which model should you choose?
Choose RMBG 3.0 for the top rank in Bria's benchmark, and choose BiRefNet or MODNet when you need open source weights.
Choose RMBG 3.0 if you want the top rank on hard images in Bria's benchmark, through the API.
Choose BiRefNet if you need MIT weights, several input resolutions and fine-tuning.
Choose BEN2 base if you want an MIT base model with a refiner and will test edges yourself.
Choose MODNet if your images are portraits.
Choose IS-Net if you need an academic baseline with an Apache-2.0 license.





