Instructions to use nielsr/mobilesam with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nielsr/mobilesam with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="nielsr/mobilesam")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nielsr/mobilesam", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from nielsr/mobilesam: direct link, hf CLI and curl.
- Browser
- Download file 40.7 MB
-
https://huggingface.co/nielsr/mobilesam/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://nielsr/mobilesam/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/nielsr/mobilesam/resolve/main/pytorch_model.bin
40.7 MB
- Xet hash:
- 5b10a7e9055bc4a918fa4c9b564b24cef605a0794f48c759b4b28e2829497ca4
- Size of remote file:
- 40.7 MB
- SHA256:
- 7143d68035e4d14b14ee543022ec7042195194a89e7bda71e2ff57fea4207429
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.