Compared with the other segmentation tasks
| Task | Output | Two touching cars |
|---|---|---|
| Semantic segmentation | One class per pixel | One "car" region |
| Instance segmentation | A mask per object | Two masks, two IDs |
| Panoptic segmentation | Both at once | Two car instances plus road and sky regions |
It fits anything measured by area rather than counted: land cover, road surface, cracks, corrosion, tissue types in medical images.
Labeling for it
Labels are pixel masks, drawn directly with a brush or as polygons that are filled in at export. Every pixel needs an answer, so the guidelines must say what happens to pixels that belong to no class (a "background" class, or pixels ignored in the loss) and where the border of a soft region such as a shadow or a blurry edge lies.
How models are scored
Pixel accuracy is easy to read but misleading when one class covers most of the image. Per-class IoU and its mean across classes are the standard; the Dice coefficient is common in medical work.
Pitfalls
- Thin structures such as wires or cracks cover few pixels, so a model can ignore them and still post a high mean score.
- Downscaling images for training erases those same thin structures.
- Masks exported at a different resolution or with antialiased edges introduce class values that do not exist.
In Supervisely
Masks are drawn in the image labeling toolbox with polygons, brush, eraser and pen. UNet and MMSegmentation train on them, and the evaluation report gives pixel accuracy, IoU and boundary IoU and splits errors into boundary, extent and segment errors. Masks export as PNG masks or Cityscapes.