Instructions to use nielsr/maskformer-resnet101-cityscapes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nielsr/maskformer-resnet101-cityscapes with Transformers:
# Load model directly from transformers import AutoImageProcessor, MaskFormerForInstanceSegmentation processor = AutoImageProcessor.from_pretrained("nielsr/maskformer-resnet101-cityscapes") model = MaskFormerForInstanceSegmentation.from_pretrained("nielsr/maskformer-resnet101-cityscapes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K