Image Segmentation
BEN2
ONNX
Safetensors
PyTorch
BEN2
background-remove
mask-generation
Dichotomous image segmentation
background remove
foreground
background
remove background
model_hub_mixin
pytorch_model_hub_mixin
background removal
background-removal
Instructions to use PramaLLC/BEN2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BEN2
How to use PramaLLC/BEN2 with BEN2:
import requests from PIL import Image from ben2 import AutoModel url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg" image = Image.open(requests.get(url, stream=True).raw) model = AutoModel.from_pretrained("PramaLLC/BEN2") model.to("cuda").eval() foreground = model.inference(image) - Notebooks
- Google Colab
- Kaggle
Update requirements.txt
Browse files- requirements.txt +5 -2
requirements.txt
CHANGED
|
@@ -2,5 +2,8 @@ numpy>=1.21.0
|
|
| 2 |
torch>=1.9.0
|
| 3 |
einops>=0.6.0
|
| 4 |
Pillow>=9.0.0
|
| 5 |
-
timm>=
|
| 6 |
-
torchvision>=0.10.0
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
torch>=1.9.0
|
| 3 |
einops>=0.6.0
|
| 4 |
Pillow>=9.0.0
|
| 5 |
+
timm>=1.0.10
|
| 6 |
+
torchvision>=0.10.0
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|