Instructions to use facebook/maskformer-resnet101-ade20k-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/maskformer-resnet101-ade20k-full with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, MaskFormerForInstanceSegmentation processor = AutoImageProcessor.from_pretrained("facebook/maskformer-resnet101-ade20k-full") model = MaskFormerForInstanceSegmentation.from_pretrained("facebook/maskformer-resnet101-ade20k-full", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1 opened almost 2 years ago
by
SFconvertbot