Image Segmentation
BiRefNet
Safetensors
background-removal
mask-generation
Dichotomous Image Segmentation
Camouflaged Object Detection
Salient Object Detection
pytorch_model_hub_mixin
model_hub_mixin
custom_code
Instructions to use jayson1408/rmbg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use jayson1408/rmbg with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("jayson1408/rmbg", trust_remote_code=True)# Option 2: use with BiRefNet # Install from https://github.com/ZhengPeng7/BiRefNet from models.birefnet import BiRefNet model = BiRefNet.from_pretrained("jayson1408/rmbg") - Notebooks
- Google Colab
- Kaggle
Download requirements.txt from jayson1408/rmbg: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/jayson1408/rmbg/resolve/main/requirements.txt
- Command line
-
hf download hf://jayson1408/rmbg/requirements.txt
-
curl -L -o requirements.txt https://huggingface.co/jayson1408/rmbg/resolve/main/requirements.txt
271 Bytes
| --extra-index-url https://download.pytorch.org/whl/cu118 | |
| torch==2.0.1 | |
| --extra-index-url https://download.pytorch.org/whl/cu118 | |
| torchvision==0.15.2 | |
| numpy<2 | |
| opencv-python | |
| timm | |
| scipy | |
| scikit-image | |
| kornia | |
| einops | |
| tqdm | |
| prettytable | |
| transformers | |
| huggingface-hub>0.25 | |
| accelerate | |