Transformers How to use facebook/maskformer-resnet101-coco-stuff with Transformers:
# Load model directly
from transformers import AutoImageProcessor, MaskFormerForInstanceSegmentation
processor = AutoImageProcessor.from_pretrained("facebook/maskformer-resnet101-coco-stuff")
model = MaskFormerForInstanceSegmentation.from_pretrained("facebook/maskformer-resnet101-coco-stuff")