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
Commit History
-
change image_processor_type and fix readme (#1)
- change image_processor_type and fix readme (31d43a0cde07363427da33ec3a12138ee1e204bb) - Update README.md (61adfa26c7e52abfecc262b6bee4581e0562daf2) Co-authored-by: Shivalika Singh <shivi@users.noreply.huggingface.co>c8cf1b5
-
Upload processor
0456f96