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