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

← All models

briaai_RMBG-1.4

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-1.4 license_link: https://bria.ai/bria-huggingface-model-license-agreement/ pipeline_tag: image-segmentation tags:

  • remove background
  • background
  • background-removal
  • Pytorch
  • vision
  • legal liability
  • transformers
  • transformers.js

extra_gated_description: RMBG v1.4 is available as a source-available model for non-commercial use extra_gated_heading: "Fill in this form to get instant access" extra_gated_fields: Name: text Company/Org name: text Org Type (Early/Growth Startup, Enterprise, Academy): text Role: text Country: text Email: text By submitting this form, I agree to BRIA’s Privacy policy and Terms & conditions, see links below: checkbox

BRIA Background Removal v1.4 Model Card

RMBG v1.4 is our 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 v1.4 is available as a source-available model for non-commercial use.

To purchase a commercial license, simply click Here.

CLICK HERE FOR A DEMO

NOTE New RMBG version available! Check out RMBG-2.0

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

Model Description

  • Developed by: BRIA AI

  • Model type: Background Removal

  • License: bria-rmbg-1.4

    • The model is released under a Creative Commons license for non-commercial use.
    • Commercial use is subject to a commercial agreement with BRIA. To purchase a commercial license simply click Here.
  • Model Description: BRIA RMBG 1.4 is a saliency 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 12,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

Architecture

RMBG v1.4 is developed on the IS-Net enhanced with our unique training scheme and proprietary dataset. These modifications significantly improve the model’s accuracy and effectiveness in diverse image-processing scenarios.

Installation

pip install -qr https://huggingface.co/briaai/RMBG-1.4/resolve/main/requirements.txt

Usage

Either load the pipeline

from transformers import pipeline
image_path = "https://farm5.staticflickr.com/4007/4322154488_997e69e4cf_z.jpg"
pipe = pipeline("image-segmentation", model="briaai/RMBG-1.4", trust_remote_code=True)
pillow_mask = pipe(image_path, return_mask = True) # outputs a pillow mask
pillow_image = pipe(image_path) # applies mask on input and returns a pillow image

Or load the model

from PIL import Image
from skimage import io
import torch
import torch.nn.functional as F
from transformers import AutoModelForImageSegmentation
from torchvision.transforms.functional import normalize
model = AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-1.4",trust_remote_code=True)
def preprocess_image(im: np.ndarray, model_input_size: list) -> torch.Tensor:
    if len(im.shape) < 3:
        im = im[:, :, np.newaxis]
    # orig_im_size=im.shape[0:2]
    im_tensor = torch.tensor(im, dtype=torch.float32).permute(2,0,1)
    im_tensor = F.interpolate(torch.unsqueeze(im_tensor,0), size=model_input_size, mode='bilinear')
    image = torch.divide(im_tensor,255.0)
    image = normalize(image,[0.5,0.5,0.5],[1.0,1.0,1.0])
    return image

def postprocess_image(result: torch.Tensor, im_size: list)-> np.ndarray:
    result = torch.squeeze(F.interpolate(result, size=im_size, mode='bilinear') ,0)
    ma = torch.max(result)
    mi = torch.min(result)
    result = (result-mi)/(ma-mi)
    im_array = (result*255).permute(1,2,0).cpu().data.numpy().astype(np.uint8)
    im_array = np.squeeze(im_array)
    return im_array

device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model.to(device)

# prepare input
image_path = "https://farm5.staticflickr.com/4007/4322154488_997e69e4cf_z.jpg"
orig_im = io.imread(image_path)
orig_im_size = orig_im.shape[0:2]
model_input_size = [1024, 1024]
image = preprocess_image(orig_im, model_input_size).to(device)

# inference 
result=model(image)

# post process
result_image = postprocess_image(result[0][0], orig_im_size)

# save result
pil_mask_im = Image.fromarray(result_image)
orig_image = Image.open(image_path)
no_bg_image = orig_image.copy()
no_bg_image.putalpha(pil_mask_im)

Magnet link

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

magnet:?xt=urn:btih:3059bd203114ce1177f26748f18ed5368e81f3c6&dn=briaai_RMBG-1.4

Open magnet in torrent client · infohash 3059bd203114ce1177f26748f18ed5368e81f3c6

Files & hashes

PathSizesha1sha256
MyConfig.py326 B (326 B)d50006abdaa687edd18dd39c9fb5ac9a310237736ed4bf30d736b4fac18ca044e719a8cfc76bee7e71f022aa6f9e8853aa580d0b
MyPipe.py2.8 KB (2,887 B)f98d8de2856793cb7d6ca894559366d979519e85ab93d1432f145082f631c58291a1b977785d1e2ae7f80fc5d76126c4113d1594
README.md6.2 KB (6,395 B)9c1f4e48ad47f65971cb6258f2c781ddfc45a8fb24e08231e4a1f467f69fd9a5f279c259544212dbeb581c710700f27effd07875
briarmbg.py12.8 KB (13,101 B)da8591aafb1fd74c194a665302452a2aa591d1611dbefbca5c1a3ec1afde2a2164b05274e7f62c861fa62e62a84525ff603a955d
config.json548 B (548 B)a587b1fea5d4c20cc7be9ce8790300e414ebed9dd774e7d35151efb2479a83f132a57048334adf722e6e354309e30c56e3b35fbe
example_inference.py1.1 KB (1,090 B)bb627e1952de7701331168357d9510c7c00f9fd502f466374258ac228e00a372ff6d379f25c948bce57ff1288f780bf7de395e1a
example_input.jpg319.0 KB (326,645 B)4c51970914c075064c43b60c7e66b56be2c314631e9cff13a43d13ec0d0d733a55234e862a35c282cdbfa197c85223a937f28a56
model.safetensors168.2 MB (176,381,984 B)d19d675641c021bb0c6d05c6414e0a6478e9317046ef7fe46f2ae284d8f1aaa24bfa5fca5ef25a34e2c7caa890a0029eb100e87f
onnx/quantize_config.json527 B (527 B)d0dd447b33c4757b5e90081b61a48cb2d65d4634ef73b4d68d23d1f1c3e02bf3b69a956f0370f7acd12430250f8c465880577a8d
preprocessor_config.json345 B (345 B)ef29ef503ab28b350a34ea32785f8015af34b5c16f9c2cfdb87edd9b83c1314629657d5b320a6a89f8481c872a36253132e33afa
pytorch_model.bin168.4 MB (176,574,018 B)57284282d1cba07cd4c7140bbc53439d45edd0d259569acdb281ac9fc9f78f9d33b6f9f17f68e25086b74f9025c35bb5f2848967
requirements.txt87 B (87 B)24fc6e3706df0ed5e8bf8ece6d3a14bf261679d68a10729dee6ce0b7fa46a7000e5f8c0e76454f17fe3097b3fa00dd5470afae0e
results.png1.2 MB (1,251,942 B)26952f6cb1b2beee34fedabac66053012b92719c2b7f08fc4c09db56b516186c0629f72523a5cbe328beaedda8b36349af4b04bc
t4.png2.1 MB (2,159,885 B)6720a2c15936160a7c857085ac23c3a57f5c35b043a9453f567d9bff7fe4481205575bbf302499379047ee6073247315452ba8fb
utilities.py980 B (980 B)77bf9e6f0ea22608c69a6e1c5528a3f225b48a63c9e358b02d6687a752e45cb71730e3a6b8a251a50c66e8cc17ba25e3d7b0603f

Cite this release

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

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

Provenance

Upstream repositorybriaai/RMBG-1.4
Revision (pinned)2ceba5a5efaec153162aedea169f76caf9b46cf8
Fetched at2026-09-03T21:10:37Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:10:43Z

custom/other license340.2 MB (356,720,760 bytes)transformerspytorchonnxsafetensorsSegformerForSemanticSegmentationimage-segmentationremove backgroundbackgroundbackground-removalPytorchvisionlegal liabilitytransformers.jscustom_code