Instructions to use facebook/mask2former-swin-base-coco-instance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mask2former-swin-base-coco-instance with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="facebook/mask2former-swin-base-coco-instance")# Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-base-coco-instance") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-base-coco-instance") - Inference
- Notebooks
- Google Colab
- Kaggle
Update preprocessor_config.json
#1
by shivalikasingh - opened
- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
0.4560000002384186,
|
| 10 |
0.4059999883174896
|
| 11 |
],
|
| 12 |
-
"image_processor_type": "
|
| 13 |
"image_std": [
|
| 14 |
0.2290000021457672,
|
| 15 |
0.2239999920129776,
|
|
|
|
| 9 |
0.4560000002384186,
|
| 10 |
0.4059999883174896
|
| 11 |
],
|
| 12 |
+
"image_processor_type": "Mask2FormerImageProcessor",
|
| 13 |
"image_std": [
|
| 14 |
0.2290000021457672,
|
| 15 |
0.2239999920129776,
|