Sub topic 3
Things versus Stuff
Assume you know basic convolutional neural networks, pixel label maps, and object detection with bounding boxes. This chapter introduces a distinction used mainly in panoptic segmentation: things are countable objects, while stuff is amorphous material or background.
Countable objects and amorphous regions
A thing class describes separate objects that can be counted. Common examples include:
- person
- car
- bicycle
- dog
- traffic light
If an image contains three cars, the cars are three different instances of the same class. Their shapes, positions, and identities matter.
A stuff class describes material or a region without a natural object count. Common examples include:
- sky
- road
- grass
- water
- building facade
A road can cover a large connected area, but it usually does not make sense to count “road number one” and “road number two.” The material matters more than separate identities.
| Property | Things | Stuff |
|---|---|---|
| Can it usually be counted? | Yes | Usually no |
| Needs instance IDs? | Yes for instance-level tasks | Usually no |
| Examples | Person, car, dog | Sky, road, grass |
| Typical representation | Class plus object identity | Class label only |
Why the distinction matters
Semantic segmentation assigns one class to every pixel. If three cars appear, all car pixels may receive the same class ID. The output tells you where cars are, but not which pixels belong to each car.
Instance segmentation separates thing objects. Each detected car receives its own mask and instance ID. It normally does not assign separate identities to stuff regions.
Panoptic segmentation combines these goals. It assigns every valid pixel:
- A semantic class.
- An instance identity for thing classes.
Stuff pixels receive a class label but normally use a shared “no instance” value. Thing pixels receive both a class and an instance ID.
A practical label representation
A panoptic result often uses two aligned maps:
class_map[y, x]stores the class at each pixel.instance_map[y, x]stores the instance ID.
For stuff pixels, instance_map can be zero. For thing pixels, positive IDs distinguish objects. The pair (class_map[y, x], instance_map[y, x]) identifies the pixel's panoptic segment.
A common error is assigning instance IDs to every connected region of stuff. That adds identities the task does not require and can make evaluation incorrect. Another error is treating all objects of one thing class as one region, which loses the separation that instance and panoptic segmentation require.
Exercise
An image contains two people, one car, and a road. What does a panoptic output need to distinguish?
Show answer
It needs separate instance IDs for the two people and the car, while the road needs its semantic class label but normally no separate instance ID.