Instructions to use nobg/BiRefNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use nobg/BiRefNet with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("nobg/BiRefNet", 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("nobg/BiRefNet") - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse files- README.md +35 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: nobg
|
| 3 |
+
tags:
|
| 4 |
+
- birefnet
|
| 5 |
+
- model_hub_mixin
|
| 6 |
+
- nobg
|
| 7 |
+
- pytorch_model_hub_mixin
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
<p align="center">
|
| 11 |
+
<img src="https://usefeyn.com/feyn/feyn_mark.svg"/>
|
| 12 |
+
</p>
|
| 13 |
+
|
| 14 |
+
This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration.
|
| 15 |
+
|
| 16 |
+
Library: [nobg](https://github.com/feyninc/nobg)
|
| 17 |
+
|
| 18 |
+
## how to load
|
| 19 |
+
```
|
| 20 |
+
pip install nobg
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
use the AutoModel class
|
| 24 |
+
```python
|
| 25 |
+
from nobg import AutoModel
|
| 26 |
+
model = AutoModel.from_pretrained("nobg/BiRefNet")
|
| 27 |
+
```
|
| 28 |
+
or you can use the model class directly
|
| 29 |
+
```python
|
| 30 |
+
from nobg import BiRefNet
|
| 31 |
+
model = BiRefNet.from_pretrained("nobg/BiRefNet")
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Contributions
|
| 35 |
+
Any contributions are welcome at https://github.com/feyninc/nobg
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6889b5922f93e1426da06ec394c1cc254bbc05b1ceded2cb22a82ade26dd7802
|
| 3 |
+
size 884878824
|