AI SeedbankHelp preserve open and free AI for humanity's future

← All models

briaai_RMBG-2.0

briaai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: other license_name: bria-rmbg-2.0 license_link: https://creativecommons.org/licenses/by-nc/4.0/deed.en pipeline_tag: image-segmentation tags:

  • remove background
  • background
  • background-removal
  • Pytorch
  • vision
  • legal liability
  • transformers
  • transformers.js extra_gated_description: >- Bria AI Model weights are open source for non commercial use only, per the provided license. extra_gated_heading: Fill in this form to immediatly access the model for non commercial use extra_gated_fields: Name: text Email: text Company/Org name: text Company Website URL: text Discord user: text I agree to BRIA’s Privacy policy, Terms & conditions, and acknowledge Non commercial use to be Personal use / Academy / Non profit (direct or indirect): checkbox

BRIA Background Removal v2.0 Model Card

✨ Discover FIBO on Hugging Face

💜 Bria AI   |   🤗 Hugging Face    |    📑 Blog   
🖥️ Demo  |    Github  

RMBG v2.0 is our new state-of-the-art background removal model significantly improves RMBG v1.4. The model is 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.

→ Try the API Sandbox (no signup required)

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

Get Access

Bria RMBG2.0 is availabe everywhere you build, either as source-code and weights, ComfyUI nodes or API endpoints.

Model Description

For production / commercial deployment, use the Bria API — same RMBG-2.0 quality, fully licensed, zero infrastructure:

Use Self-Hosted (HF Weights) Bria API
Quality ✅ RMBG-2.0 ✅ RMBG-2.0
Commercial License ❌ Requires agreement ✅ Included
GPU Infrastructure ❌ You manage ✅ Managed
Legally Licensed Data ✅ Yes ✅ Yes
Setup Time Hours Minutes

→ Try the API Sandbox — test it live, no signup required.

Model Details

  • Developed by: BRIA AI
  • Model type: Background Removal
  • License: Creative Commons Attribution–Non-Commercial (CC BY-NC 4.0)
    • The model is released under a CC BY-NC 4.0 license for non-commercial use.
    • Commercial use is subject to a commercial agreement with BRIA. Available here

API Endpoint: Sandbox

  • ComfyUI: Use it in workflows
  • GitHub: github.com/Bria-AI/RMBG-2.0

Purchase: To purchase a Self-Hosted (HF Weights) commercial license Click Here.

For more information, please visit our website.

Join our Discord community for more information, tutorials, tools, and to connect with other users!

CLICK HERE FOR A DEMO

fal.ai, Replicate

  • Model Description: BRIA RMBG-2.0 is a dichotomous image segmentation model trained exclusively on a professional-grade dataset. The model output includes a single-channel 8-bit grayscale alpha matte, where each pixel value indicates the opacity level of the corresponding pixel in the original image. This non-binary output approach offers developers the flexibility to define custom thresholds for foreground-background separation, catering to varied use cases requirements and enhancing integration into complex pipelines.
  • 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

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 torch
from torchvision import transforms
from transformers import AutoModelForImageSegmentation

device = 'cuda' if torch.cuda.is_available() else 'cpu'
model = AutoModelForImageSegmentation.from_pretrained('briaai/RMBG-2.0', trust_remote_code=True).eval().to(device)

# 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(device)

# 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")

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:c676161d0f9569dbb0e9890b04e0da63694b7083&dn=briaai_RMBG-2.0

Open magnet in torrent client · infohash c676161d0f9569dbb0e9890b04e0da63694b7083

Files & hashes

PathSizesha1sha256
BiRefNet_config.py298 B (298 B)37c8ac58bec2f52dac34204978a7b61b69e3da76e7b8c2a74f6cea6a59553d517f71d47f2c1d90e670a13416af17c25fe2f3dc52
README.md9.2 KB (9,392 B)c482a78d5ff79c76b28e2116e5ce6bc5a909881e764d961aebbef88f656cfbf7a2665c2c7cd514fd159f1666d5c184b56b0993ca
birefnet.py89.3 KB (91,403 B)6d56778af0737ad21a8a877f79e534f848589f05e499d75224b8819e985e68fb78b7a8e8c99316840474e74e16b5529f03ca2860
collage5.png4.3 MB (4,515,604 B)47c46a427903fc2fa0cef1a4702bfcece8806d9af9f802564aa1e3a7c90762c7e65b77007f081cb179cdd9b42607bad3b1fdaf16
config.json405 B (405 B)06d8fa9d7f2f4c6f1cf0dc6e7bfd194153176a42c97ea21569daf66b205491a4635147dd3bc42c7c168b89d7d75b53f67ef548ae
diagram1.png20.8 KB (21,269 B)0a120d09a7fcbf76cf4812bbf86adc9ff94dd43874afae5fa37eeb45758d26c96293d02fc6a5be353b57d3a00c2b352f28ca22b6
model.safetensors843.9 MB (884,878,856 B)512e2f66e5fe407a716700e8e4f008ba2c5129ca566ed80c3d95f87ada6864d4cbe2290a1c5eb1c7bb0b123e984f60f76b02c3a7
preprocessor_config.json391 B (391 B)825398cfd94a348babce456f2bcc8422c9bebb93447d9ccb2c4129ab0ca045fc293e7d79dbc45e293ac1e94818d865db77f65a54
pytorch_model.bin844.1 MB (885,079,136 B)54d9d7c43e3765019ce526c160a87de1b3b47b680986c2881028a2d0ef9b638ab06bc4cfe7c529760d451eaa7098ade2592015f2
t4.png2.1 MB (2,159,885 B)6720a2c15936160a7c857085ac23c3a57f5c35b043a9453f567d9bff7fe4481205575bbf302499379047ee6073247315452ba8fb

Cite this release

Canonical URL
https://aiseedbank.org/models/briaai_RMBG-2.0/
Slug
briaai_RMBG-2.0
Infohash
c676161d0f9569dbb0e9890b04e0da63694b7083
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: briaai_RMBG-2.0.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorybriaai/RMBG-2.0
Revision (pinned)5df4c9c76d8170882c34f6986e848ee07fd0ba43
Fetched at2026-09-03T21:10:43Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:11:04Z

custom/other license1.65 GB (1,776,756,639 bytes)transformerspytorchonnxsafetensorsimage-segmentationremove backgroundbackgroundbackground-removalPytorchvisionlegal liabilitytransformers.jscustom_code