Instructions to use briaai/RMBG-1.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use briaai/RMBG-1.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="briaai/RMBG-1.4", trust_remote_code=True)# Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-1.4", trust_remote_code=True, dtype="auto") - Transformers.js
How to use briaai/RMBG-1.4 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'briaai/RMBG-1.4'); - Notebooks
- Google Colab
- Kaggle
did you expect this
WOW! I've used some background removers online and watched the timer count..
I've yet to experience your software take more then 1 second to remove the background.
The accuracy is so mind blowing. It's like if a human took 10 hours zoomed in deleting pixel by pixel..
95% it removes what I want and it feels weird because ... it just knew what to do..
The other 5% is because a glitch in my original photo makes it appear part of foreground.
Anyways, I am so impressed, this is a real achievement, I hope you all genuinely realize what an accomplishment this is.
And for everyone else: just download 'pinokio' and use the 1-click install... If you have Nvidia you'll probably resemble my remarks.