Image Segmentation
Transformers
PyTorch
ONNX
Safetensors
Transformers.js
remove background
background
background-removal
Pytorch
vision
legal liability
custom_code
Instructions to use briaai/RMBG-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use briaai/RMBG-2.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="briaai/RMBG-2.0", trust_remote_code=True)# Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-2.0", trust_remote_code=True, dtype="auto") - Transformers.js
How to use briaai/RMBG-2.0 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'briaai/RMBG-2.0'); - Inference
- Notebooks
- Google Colab
- Kaggle
How to train on my custom dataset
#27
by ndkhanh95 - opened
What a great work.
I would like to know more about how to train this model on my own custom dataset. Could you please give a tutorial on this? I would appreciate it.
Hi @ndkhanh95 ,
Sorry for the delayed response, we will create such tutorial and upload it. Timeline is probably towards the end of the month due to holidays.
Hi @ndkhanh95 , until we make a dedicate tutorial, please see this guide as an example on how to train our model-
https://github.com/Bria-AI/GTC25_Demo/blob/dev/gtc_demo_fine_tune_on_prem.ipynb
Let me know if you have any questions!
Any updates on this?