Instructions to use moonbox-dev/BEN2-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BEN2
How to use moonbox-dev/BEN2-ONNX 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("moonbox-dev/BEN2-ONNX") model.to("cuda").eval() foreground = model.inference(image) - Notebooks
- Google Colab
- Kaggle
int4 build of BEN2 Base
Browse files- int4/model.onnx +3 -0
int4/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b98f199bde18bceea563fca7a18ed06601a3f81dfc4900f6bbe4584faf27ee4b
|
| 3 |
+
size 93276611
|