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 NOTICE from LibreYOLO/LibreBiRefNetl-matte: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/LibreYOLO/LibreBiRefNetl-matte/resolve/main/NOTICE
- Command line
-
hf download hf://LibreYOLO/LibreBiRefNetl-matte/NOTICE
-
curl -L -o NOTICE https://huggingface.co/LibreYOLO/LibreBiRefNetl-matte/resolve/main/NOTICE
399 Bytes
| LibreBiRefNetl-matte weights | |
| ------------------------------------ | |
| This product contains weights derived from BiRefNet | |
| (https://github.com/ZhengPeng7/BiRefNet). | |
| Copyright (c) 2024 ZhengPeng (Peng Zheng). | |
| Licensed under the MIT License. | |
| Conversion is a state-dict metadata-wrap: learned parameters are unchanged. | |
| See weights/convert_birefnet_weights.py in the LibreYOLO source repository. | |