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
Model card and the original license
Browse files
README.md
CHANGED
|
@@ -25,6 +25,7 @@ its own score on the eval set (details under *How to run*).
|
|
| 25 |
| Precision | File | Size | sha256 | Benchmark |
|
| 26 |
|---|---|---|---|---|
|
| 27 |
| fp16 | [`fp16/model.onnx`](https://huggingface.co/moonbox-dev/BEN2-ONNX/blob/main/fp16/model.onnx) | 0.22 GB | `22cea62108ff` | MAE 0.0244, S 0.937, max F 0.943 |
|
|
|
|
| 28 |
|
| 29 |
## How to run
|
| 30 |
|
|
|
|
| 25 |
| Precision | File | Size | sha256 | Benchmark |
|
| 26 |
|---|---|---|---|---|
|
| 27 |
| fp16 | [`fp16/model.onnx`](https://huggingface.co/moonbox-dev/BEN2-ONNX/blob/main/fp16/model.onnx) | 0.22 GB | `22cea62108ff` | MAE 0.0244, S 0.937, max F 0.943 |
|
| 28 |
+
| int8 | [`int8/model.onnx`](https://huggingface.co/moonbox-dev/BEN2-ONNX/blob/main/int8/model.onnx) | 0.13 GB | `dc60def496e0` | vs fp16: IoU 0.9965, MAE 0.0005; DIS5K MAE 0.0244, S 0.937 |
|
| 29 |
|
| 30 |
## How to run
|
| 31 |
|