Instructions to use LibreYOLO/LibreBiRefNetl-matte with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreBiRefNetl-matte with LibreYOLO:
# pip install libreyolo from libreyolo import LibreYOLO model = LibreYOLO("LibreYOLO/LibreBiRefNetl-matte") results = model("https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/guggenheim-bilbao.jpg", save=True) - BiRefNet
How to use LibreYOLO/LibreBiRefNetl-matte with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("LibreYOLO/LibreBiRefNetl-matte", 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("LibreYOLO/LibreBiRefNetl-matte") - Notebooks
- Google Colab
- Kaggle
Download .gitattributes from LibreYOLO/LibreBiRefNetl-matte: direct link, hf CLI and curl.
- Browser
- Download file 42 Bytes
-
https://huggingface.co/LibreYOLO/LibreBiRefNetl-matte/resolve/main/.gitattributes
- Command line
-
hf download hf://LibreYOLO/LibreBiRefNetl-matte/.gitattributes
-
curl -L -o .gitattributes https://huggingface.co/LibreYOLO/LibreBiRefNetl-matte/resolve/main/.gitattributes
42 Bytes
| *.pt filter=lfs diff=lfs merge=lfs -text | |