briaai / RMBG-2.0

huggingface.co
Total runs: 398.5K
24-hour runs: 2.3K
7-day runs: -21.7K
30-day runs: -251.9K
Model's Last Updated: April 06 2026
image-segmentation

Introduction of RMBG-2.0

Model Details of RMBG-2.0

BRIA Background Removal v2.0 Model Card

RMBG v2.0 is our new state-of-the-art background removal model, designed to effectively separate foreground from background in a range of categories and image types. This model has been trained on a carefully selected dataset, which includes: general stock images, e-commerce, gaming, and advertising content, making it suitable for commercial use cases powering enterprise content creation at scale. The accuracy, efficiency, and versatility currently rival leading source-available models. It is ideal where content safety, legally licensed datasets, and bias mitigation are paramount.

Developed by BRIA AI, RMBG v2.0 is available as a source-available model for non-commercial use.

CLICK HERE FOR A DEMO examples

Model Details
Model Description
  • Developed by: BRIA AI

  • Model type: Background Removal

  • License: bria-rmbg-2.0

    • The model is released under a Creative Commons license for non-commercial use.
    • Commercial use is subject to a commercial agreement with BRIA. Contact Us for more information.
  • Model Description: BRIA RMBG-2.0 is a dichotomous image segmentation model trained exclusively on a professional-grade dataset.

  • BRIA: Resources for more information: BRIA AI

Training data

Bria-RMBG model was trained with over 15,000 high-quality, high-resolution, manually labeled (pixel-wise accuracy), fully licensed images. Our benchmark included balanced gender, balanced ethnicity, and people with different types of disabilities. For clarity, we provide our data distribution according to different categories, demonstrating our model’s versatility.

Distribution of images:
Category Distribution
Objects only 45.11%
People with objects/animals 25.24%
People only 17.35%
people/objects/animals with text 8.52%
Text only 2.52%
Animals only 1.89%
Category Distribution
Photorealistic 87.70%
Non-Photorealistic 12.30%
Category Distribution
Non Solid Background 52.05%
Solid Background 47.95%
Category Distribution
Single main foreground object 51.42%
Multiple objects in the foreground 48.58%
Qualitative Evaluation

Open source models comparison diagram examples

Architecture

RMBG-2.0 is developed on the BiRefNet architecture enhanced with our proprietary dataset and training scheme. This training data significantly improves the model’s accuracy and effectiveness for background-removal task.
If you use this model in your research, please cite:

@article{BiRefNet,
  title={Bilateral Reference for High-Resolution Dichotomous Image Segmentation},
  author={Zheng, Peng and Gao, Dehong and Fan, Deng-Ping and Liu, Li and Laaksonen, Jorma and Ouyang, Wanli and Sebe, Nicu},
  journal={CAAI Artificial Intelligence Research},
  year={2024}
}
Requirements
torch
torchvision
pillow
kornia
transformers
Usage
from PIL import Image
import matplotlib.pyplot as plt
import torch
from torchvision import transforms
from transformers import AutoModelForImageSegmentation

model = AutoModelForImageSegmentation.from_pretrained('briaai/RMBG-2.0', trust_remote_code=True)
torch.set_float32_matmul_precision(['high', 'highest'][0])
model.to('cuda')
model.eval()

# Data settings
image_size = (1024, 1024)
transform_image = transforms.Compose([
    transforms.Resize(image_size),
    transforms.ToTensor(),
    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
])

image = Image.open(input_image_path)
input_images = transform_image(image).unsqueeze(0).to('cuda')

# Prediction
with torch.no_grad():
    preds = model(input_images)[-1].sigmoid().cpu()
pred = preds[0].squeeze()
pred_pil = transforms.ToPILImage()(pred)
mask = pred_pil.resize(image.size)
image.putalpha(mask)

image.save("no_bg_image.png")

Runs of briaai RMBG-2.0 on huggingface.co

398.5K
Total runs
2.3K
24-hour runs
5.3K
3-day runs
-21.7K
7-day runs
-251.9K
30-day runs

More Information About RMBG-2.0 huggingface.co Model

RMBG-2.0 huggingface.co

RMBG-2.0 huggingface.co is an AI model on huggingface.co that provides RMBG-2.0's model effect (), which can be used instantly with this briaai RMBG-2.0 model. huggingface.co supports a free trial of the RMBG-2.0 model, and also provides paid use of the RMBG-2.0. Support call RMBG-2.0 model through api, including Node.js, Python, http.

RMBG-2.0 huggingface.co Url

https://huggingface.co/briaai/RMBG-2.0

briaai RMBG-2.0 online free

RMBG-2.0 huggingface.co is an online trial and call api platform, which integrates RMBG-2.0's modeling effects, including api services, and provides a free online trial of RMBG-2.0, you can try RMBG-2.0 online for free by clicking the link below.

briaai RMBG-2.0 online free url in huggingface.co:

https://huggingface.co/briaai/RMBG-2.0

RMBG-2.0 install

RMBG-2.0 is an open source model from GitHub that offers a free installation service, and any user can find RMBG-2.0 on GitHub to install. At the same time, huggingface.co provides the effect of RMBG-2.0 install, users can directly use RMBG-2.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

RMBG-2.0 install url in huggingface.co:

https://huggingface.co/briaai/RMBG-2.0

Url of RMBG-2.0

RMBG-2.0 huggingface.co Url

Provider of RMBG-2.0 huggingface.co

briaai
ORGANIZATIONS

Other API from briaai

huggingface.co

Total runs: 264.5K
Run Growth: -108.8K
Growth Rate: -41.14%
Updated:July 06 2025
huggingface.co

Total runs: 3.6K
Run Growth: 34
Growth Rate: 0.89%
Updated:October 29 2025
huggingface.co

Total runs: 979
Run Growth: 143
Growth Rate: 14.61%
Updated:July 05 2026
huggingface.co

Total runs: 783
Run Growth: -194
Growth Rate: -24.78%
Updated:September 09 2026
huggingface.co

Total runs: 763
Run Growth: 638
Growth Rate: 83.62%
Updated:January 30 2026
huggingface.co

Total runs: 530
Run Growth: -627
Growth Rate: -118.98%
Updated:August 18 2026
huggingface.co

Total runs: 235
Run Growth: 0
Growth Rate: 0.00%
Updated:May 12 2024
huggingface.co

Total runs: 213
Run Growth: 128
Growth Rate: 60.09%
Updated:September 05 2026
huggingface.co

Total runs: 135
Run Growth: 85
Growth Rate: 62.96%
Updated:September 01 2025
huggingface.co

Total runs: 131
Run Growth: 0
Growth Rate: 0.00%
Updated:August 04 2024
huggingface.co

Total runs: 104
Run Growth: 39
Growth Rate: 37.50%
Updated:October 16 2025
huggingface.co

Total runs: 68
Run Growth: -29
Growth Rate: -40.85%
Updated:January 15 2026
huggingface.co

Total runs: 46
Run Growth: 0
Growth Rate: 0.00%
Updated:May 12 2024
huggingface.co

Total runs: 30
Run Growth: 0
Growth Rate: 0.00%
Updated:March 13 2024
huggingface.co

Total runs: 28
Run Growth: 28
Growth Rate: 100.00%
Updated:April 10 2025
huggingface.co

Total runs: 9
Run Growth: -6
Growth Rate: -66.67%
Updated:June 11 2025
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:November 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2024
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:April 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 08 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 16 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 25 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2026