Instructions to use facebook/mask2former-swin-tiny-ade-semantic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mask2former-swin-tiny-ade-semantic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="facebook/mask2former-swin-tiny-ade-semantic")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-tiny-ade-semantic") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-tiny-ade-semantic", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Model card: clarify semantic versus panoptic intended use on ADE20K
#3 opened 2 days ago
by
sadraksilva
Adding `safetensors` variant of this model
#2 opened over 2 years ago
by
SFconvertbot