MaskDINO segments with a DETR-style transformer
MaskDINO (Mask DINO) is a DETR-style transformer that adds a mask branch to the DINO detector. The Supervisely apps use it for semantic segmentation: you train it on your classes from an ADE20K or Cityscapes checkpoint and serve it to label every pixel of new images.

- Publisher
- IDEA Research
- Labels
- Polygons
- Bitmaps, drawn into class masks
- Apps
- Train, Serve
Apps in the Supervisely Ecosystem
Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.
One architecture, three segmentation tasks
Mask DINO ("Towards A Unified Transformer-based Framework for Object Detection and Segmentation") extends DINO, a DETR-style detector with improved denoising anchor boxes. Its query embeddings take a dot product with a high-resolution pixel embedding map, and each product is a binary mask. Because detection and segmentation share one architecture and one training process, the paper applies it to instance, panoptic and semantic segmentation and lets it learn from detection and segmentation datasets together.
What the apps actually do
The Supervisely integration is narrower than the paper: the apps run Mask DINO as a semantic segmentation model. The served model returns one bitmap per class, and the training app turns your labels into a class mask per image before it trains. Its pretrained checkpoints use a ResNet-50 backbone:
- MaskDINO-R50 trained on ADE20K, a scene-parsing dataset with many indoor and outdoor classes.
- MaskDINO-R50 trained on Cityscapes, street scenes from a car.
If you need a separate mask for each car rather than "car" pixels, that is instance segmentation, and these apps do not provide it. Use the instance segmentation checkpoints of YOLO or MMDetection 3.0 instead.
Training on your classes
Label regions with polygons or bitmap masks; both end up in the same class mask. Then open Train MaskDINO from the project's context menu, on an agent with a GPU:
- Use the cached project or download it again.
- Split it into train and validation.
- Choose the classes.
- Pick the ADE20K or the Cityscapes checkpoint as the start.
- Set the hyperparameters and keep the model evaluation on.
- Name the experiment, start it and follow the charts.
The run ends in the Experiments table with an evaluation report that, for semantic segmentation, measures pixel accuracy, IoU and boundary IoU. The training options of this app turn ONNX and TensorRT export off, so the model is served in PyTorch.
MaskDINO, MMSegmentation or UNet?
MaskDINO starts from scene-parsing weights, a natural start for datasets with many classes in cluttered scenes. MMSegmentation gives you the widest choice of methods and backbones, SegFormer and DeepLabV3+ among them, and UNet is the light baseline for a few classes and a small dataset. Training two of them on the same split and comparing the reports is the fair way to decide. Masks you already have import as PNG masks or Cityscapes files.
Frequently asked questions.
Should I start from the ADE20K or the Cityscapes checkpoint?
The one closer to your images: Cityscapes for street and driving footage, ADE20K for general indoor and outdoor scenes. If you are unsure, train both on the same split and compare the reports.
Does the MaskDINO app do instance or panoptic segmentation?
No. The paper covers all three tasks, but the Supervisely train and serve apps run it as semantic segmentation, one mask per class.
Train and serve models on your own data.
Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.


