Instructions to use facebook/mask2former-swin-small-coco-instance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mask2former-swin-small-coco-instance with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="facebook/mask2former-swin-small-coco-instance")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-small-coco-instance") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-small-coco-instance", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (bd6c01a955e173bcc5e91b4f6d9a8cad11ae9d11) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>1b7ac41
-
Update README.md (#1)
- Update README.md (f77f179fc62b98f6734481ebbef5bceeb1e7f10b) - Update README.md (810b5a1b4661b9ee6f4e8ba1e4e752fa8dd836be) - Update preprocessor_config.json (e31996f7b8e731b0131a4ae13d5a2f283480d458) Co-authored-by: Shivalika Singh <shivi@users.noreply.huggingface.co>dd3578c
-
Upload Mask2FormerForUniversalSegmentation
f8eb176 -
Upload processor
babc022
-
Update README.md
d32b7ee -
Update preprocessor_config.json
120e87d
-
Create README.md
440b72e
-
Upload Mask2FormerForUniversalSegmentation
dd83f8c -
Upload processor
3fbe268 -
initial commit
Alara Dirik0419de1