Image Segmentation
BiRefNet
Safetensors
background-removal
mask-generation
Image Matting
pytorch_model_hub_mixin
model_hub_mixin
custom_code
Instructions to use ZhengPeng7/BiRefNet-portrait with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use ZhengPeng7/BiRefNet-portrait with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet-portrait", 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("ZhengPeng7/BiRefNet-portrait") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -83,7 +83,7 @@ from models.birefnet import BiRefNet
|
|
| 83 |
birefnet = BiRefNet.from_pretrained('zhengpeng7/BiRefNet-portrait')
|
| 84 |
```
|
| 85 |
|
| 86 |
-
#### Use codes from GitHub + weights from
|
| 87 |
> Only use the weights and codes both locally.
|
| 88 |
|
| 89 |
```python
|
|
|
|
| 83 |
birefnet = BiRefNet.from_pretrained('zhengpeng7/BiRefNet-portrait')
|
| 84 |
```
|
| 85 |
|
| 86 |
+
#### Use codes from GitHub + weights from local space
|
| 87 |
> Only use the weights and codes both locally.
|
| 88 |
|
| 89 |
```python
|