Instructions to use hf-internal-testing/tiny-random-Mask2FormerForUniversalSegmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-Mask2FormerForUniversalSegmentation with Transformers:
# Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-Mask2FormerForUniversalSegmentation") model = Mask2FormerForUniversalSegmentation.from_pretrained("hf-internal-testing/tiny-random-Mask2FormerForUniversalSegmentation") - Notebooks
- Google Colab
- Kaggle