Image Segmentation
MLX
Safetensors
BiRefNet
moonbox
background-removal
dichotomous-image-segmentation
Instructions to use moonbox-dev/BiRefNet-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/BiRefNet-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-dev/BiRefNet-MLX --local-dir BiRefNet-MLX
- BiRefNet
How to use moonbox-dev/BiRefNet-MLX with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("moonbox-dev/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-dev/BiRefNet-MLX") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card and the original license
Browse files
README.md
CHANGED
|
@@ -34,6 +34,9 @@ for what was measured).
|
|
| 34 |
| 8bit | [`8bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/config.json) | 0.2 kB | `2e5c6e85149b` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
| 35 |
| 8bit | [`8bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
| 36 |
| 8bit | [`8bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/model.safetensors) | 257.9 MB | `86c4b7f5817a` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## How to run
|
| 39 |
|
|
|
|
| 34 |
| 8bit | [`8bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/config.json) | 0.2 kB | `2e5c6e85149b` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
| 35 |
| 8bit | [`8bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
| 36 |
| 8bit | [`8bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/8bit/model.safetensors) | 257.9 MB | `86c4b7f5817a` | MAE <= 0.0003, mask IoU >= 0.9971 |
|
| 37 |
+
| 6bit | [`6bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/6bit/config.json) | 0.2 kB | `3ab1929c1dab` | MAE <= 0.0009, mask IoU >= 0.9913 |
|
| 38 |
+
| 6bit | [`6bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/6bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0009, mask IoU >= 0.9913 |
|
| 39 |
+
| 6bit | [`6bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet-MLX/blob/main/6bit/model.safetensors) | 209.3 MB | `f930d6704d5b` | MAE <= 0.0009, mask IoU >= 0.9913 |
|
| 40 |
|
| 41 |
## How to run
|
| 42 |
|