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
Download bf16/model.safetensors from moonbox-dev/BiRefNet-MLX: direct link, hf CLI and curl.
- Browser
- Download file 440 MB
-
https://huggingface.co/moonbox-dev/BiRefNet-MLX/resolve/main/bf16/model.safetensors
- Command line
-
hf download hf://moonbox-dev/BiRefNet-MLX/bf16/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/moonbox-dev/BiRefNet-MLX/resolve/main/bf16/model.safetensors
440 MB
- Xet hash:
- 30ffe0a0233370dc36b8cd258f1fe72c39c6b508127672ad495df15c7d827fee
- Size of remote file:
- 440 MB
- SHA256:
- f8732f5d43482fcba4f347bc192292fe8a5975582383ffe2bdf71627bf4f0e0f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.