Image Segmentation
MLX
Safetensors
BiRefNet
moonbox
background-removal
dichotomous-image-segmentation
Instructions to use moonbox-ai/BiRefNet_lite-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-ai/BiRefNet_lite-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-ai/BiRefNet_lite-MLX --local-dir BiRefNet_lite-MLX
- BiRefNet
How to use moonbox-ai/BiRefNet_lite-MLX with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("moonbox-ai/BiRefNet_lite-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_lite-MLX") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card and the original license
Browse files
README.md
CHANGED
|
@@ -37,6 +37,9 @@ for what was measured).
|
|
| 37 |
| 6bit | [`6bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/config.json) | 0.2 kB | `e4cb180964ec` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
| 38 |
| 6bit | [`6bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
| 39 |
| 6bit | [`6bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/model.safetensors) | 56.3 MB | `c40decce0ca3` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## How to run
|
| 42 |
|
|
|
|
| 37 |
| 6bit | [`6bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/config.json) | 0.2 kB | `e4cb180964ec` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
| 38 |
| 6bit | [`6bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
| 39 |
| 6bit | [`6bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/6bit/model.safetensors) | 56.3 MB | `c40decce0ca3` | MAE <= 0.0003, mask IoU >= 0.9986 |
|
| 40 |
+
| 4bit | [`4bit/config.json`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/4bit/config.json) | 0.2 kB | `d3e54b90201b` | MAE <= 0.0010, mask IoU >= 0.9845 |
|
| 41 |
+
| 4bit | [`4bit/mlx_model.py`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/4bit/mlx_model.py) | 20.1 kB | `bd3cb5681703` | MAE <= 0.0010, mask IoU >= 0.9845 |
|
| 42 |
+
| 4bit | [`4bit/model.safetensors`](https://huggingface.co/moonbox-ai/BiRefNet_lite-MLX/blob/main/4bit/model.safetensors) | 49.4 MB | `dde1b2de46ff` | MAE <= 0.0010, mask IoU >= 0.9845 |
|
| 43 |
|
| 44 |
## How to run
|
| 45 |
|