Instructions to use facebook/mask2former-swin-base-ade-semantic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mask2former-swin-base-ade-semantic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="facebook/mask2former-swin-base-ade-semantic")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-base-ade-semantic") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-base-ade-semantic", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from facebook/mask2former-swin-base-ade-semantic: direct link, hf CLI and curl.
- Browser
- Download file 432 MB
-
https://huggingface.co/facebook/mask2former-swin-base-ade-semantic/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://facebook/mask2former-swin-base-ade-semantic/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/facebook/mask2former-swin-base-ade-semantic/resolve/main/pytorch_model.bin
432 MB
- Xet hash:
- e4f1e44a159cc9939a73a81d712aeca7c81101e7866bb4ea86068e39c76e9a57
- Size of remote file:
- 432 MB
- SHA256:
- 197bab4870fea7287635f62fe52538a4cf053767ddd0f2c9cb7611deca618f1d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.