Image Segmentation
MLX
Safetensors
BiRefNet
moonbox
background-removal
dichotomous-image-segmentation
Instructions to use moonbox-ai/BiRefNet-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-ai/BiRefNet-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-ai/BiRefNet-MLX --local-dir BiRefNet-MLX
- BiRefNet
How to use moonbox-ai/BiRefNet-MLX with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("moonbox-ai/BiRefNet-MLX", 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("moonbox-ai/BiRefNet-MLX") - 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/BiRefNet-MLX/blob/main/fp16/config.json) | 0.1 kB | `56e8081f5c47` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 29 |
| fp16 | [`fp16/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/fp16/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 30 |
| fp16 | [`fp16/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/fp16/model.safetensors) | 440.4 MB | `b3365c802c6d` | 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/BiRefNet-MLX/blob/main/bf16/config.json) | 0.1 kB | `c13e80f54aa0` | MAE <= 0.0002, mask IoU >= 0.9978 |
|
| 29 |
+
| bf16 | [`bf16/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/bf16/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0002, mask IoU >= 0.9978 |
|
| 30 |
+
| bf16 | [`bf16/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/bf16/model.safetensors) | 440.4 MB | `f8732f5d4348` | MAE <= 0.0002, mask IoU >= 0.9978 |
|
| 31 |
| fp16 | [`fp16/config.json`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/fp16/config.json) | 0.1 kB | `56e8081f5c47` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 32 |
| fp16 | [`fp16/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/fp16/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.00003, mask IoU >= 0.9996 |
|
| 33 |
| fp16 | [`fp16/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/fp16/model.safetensors) | 440.4 MB | `b3365c802c6d` | MAE <= 0.00003, mask IoU >= 0.9996 |
|