Semantic segmentation is an annotation and prediction task that assigns a class label to every pixel in an image, grouping all pixels of the same category together without distinguishing individual objects. Every pixel gets a class, but two cars in one mask are not told apart.
| Task | What it labels | Separates individual objects? |
|---|---|---|
| Semantic segmentation | Every pixel by class | No |
| Instance segmentation | Countable objects, one mask each | Yes |
| Panoptic segmentation | Every pixel by class, plus instance IDs | Yes for objects, background gets a class only |
