Computer Vision Lab Algorithms Panoptic segmentation

Panoptic segmentation

Combining semantic segmentation (for uncountable regions) and instance segmentation (for objects).

Concept and explanationImage segmentationSegmentation

This content was prepared automatically from documented sources and its human scientific review is not yet complete. If you find an error, let us know.

Mathematical formula

\mathrm{PQ} = \frac{\sum_{(p,g)\in TP}\operatorname{IoU}(p,g)}{|TP| + \tfrac{1}{2}|FP| + \tfrac{1}{2}|FN|}

Explanation

Every pixel is given a semantic class, plus an instance ID for countable objects (things), while regions such as sky and road (stuff) have no instances. Panoptic quality (PQ) combines segmentation and recognition quality.

Detailed explanation

Intuition

Panoptic segmentation unifies the two tasks: every pixel takes a semantic class, and the pixels of countable “things” (people, cars) also take an instance ID, while uncountable “stuff” (sky, road, grass) takes only the class. There is no overlap: every pixel belongs to exactly one segment. Kirillov and colleagues proposed the task and its PQ metric.

How it works step by step

  1. Predict non-overlapping segments, each with a class (and an instance ID for things).
  2. Match the predicted segments with the ground-truth ones: they count as matched if IoU > 0.5 (and the matching is then mathematically unique).
  3. Compute PQ for each class, then the mean.

Mathematical formulation

\mathrm{PQ} = \frac{\sum_{(p,g)\in TP}\operatorname{IoU}(p,g)}{|TP| + \tfrac12|FP| + \tfrac12|FN|} = \underbrace{\frac{\sum_{TP}\operatorname{IoU}}{|TP|}}_{SQ}\times\underbrace{\frac{|TP|}{|TP|+\tfrac12|FP|+\tfrac12|FN|}}_{RQ}

SQ is the segmentation quality of the matched segments, and RQ the recognition quality (similar to F1).

Computational complexity

It depends on the model; unified models such as Mask2Former solve the task with a single architecture.

Advantages

  • A complete understanding of the scene.
  • A unified, interpretable metric.

Limitations

  • Data labelling is very costly.
  • The models are heavy.

When do you use it?

For self-driving, robotics and mapping, where every pixel must be understood and objects distinguished.

Applications

Understanding the whole scene.

Limitations

It needs data with panoptic labels.

References

  1. A. Kirillov, K. He, R. Girshick, C. Rother, P. Dollár (2019).Panoptic Segmentation. CVPR 2019. doi:10.1109/CVPR.2019.00963

Related models

Related lessons

Try it in image segmentation