Instructions to use moonbox-dev/BEN2-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/BEN2-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-dev/BEN2-MLX --local-dir BEN2-MLX
- BEN2
How to use moonbox-dev/BEN2-MLX 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-MLX") model.to("cuda").eval() foreground = model.inference(image) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card and the original license
Browse files
README.md
CHANGED
|
@@ -25,6 +25,9 @@ for what was measured).
|
|
| 25 |
|
| 26 |
| Precision | File | Size | sha256 | Checked against the original |
|
| 27 |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
| 28 |
| fp16 | [`fp16/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/config.json) | 0.2 kB | `cdad08ebd797` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 29 |
| fp16 | [`fp16/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 30 |
| fp16 | [`fp16/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/model.safetensors) | 188.3 MB | `5c446d204f3f` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
|
|
|
| 25 |
|
| 26 |
| Precision | File | Size | sha256 | Checked against the original |
|
| 27 |
|---|---|---|---|---|
|
| 28 |
+
| bf16 | [`bf16/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/bf16/config.json) | 0.2 kB | `1832ec222caf` | MAE <= 0.0002, mask IoU >= 0.9987 |
|
| 29 |
+
| bf16 | [`bf16/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/bf16/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.0002, mask IoU >= 0.9987 |
|
| 30 |
+
| bf16 | [`bf16/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/bf16/model.safetensors) | 188.3 MB | `5b8344c88ff8` | MAE <= 0.0002, mask IoU >= 0.9987 |
|
| 31 |
| fp16 | [`fp16/config.json`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/config.json) | 0.2 kB | `cdad08ebd797` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 32 |
| fp16 | [`fp16/mlx_model.py`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/mlx_model.py) | 20.5 kB | `eff7a4afb5ad` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 33 |
| fp16 | [`fp16/model.safetensors`](https://huggingface.co/moonbox-ai/BEN2-MLX/blob/main/fp16/model.safetensors) | 188.3 MB | `5c446d204f3f` | MAE <= 0.00003, mask IoU >= 0.9996 |
|