01Chapter 1: What image segmentation is and why it mattersImage segmentation assigns a meaning to individual pixels. Instead of predicting one label for an entire image, a segmentation model produces a spatial prediction that follows object boundaries and regions.2 min read
02Chapter 2: Representing segmentation: label maps and mask stacksAssume you know basic Python, NumPy, convolutional neural networks, and object detection. In this chapter, you will represent segmentation annotations and predictions in three useful forms: label maps, instance ID maps, and binary mask stacks.2 min read
03Chapter 3: Things versus stuffAssume 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.2 min read
04Chapter 4: Semantic segmentation: one class per pixelAssume you know Python, NumPy, convolutional neural networks, and gradient-based training. Semantic segmentation predicts a class for every pixel in an image. It answers “what class is this pixel?” but does not separate two objects of the same class.2 min read
05Chapter 5: Instance segmentation: separating individual objectsAssume you know Python and NumPy, convolutional neural networks, object detection with bounding boxes and confidence scores, and gradient-based losses. Instance segmentation extends object detection by predicting the exact pixels belonging to each detected object.2 min read
06Chapter 6: Panoptic segmentation: a unified outputThis chapter assumes you know basic Python and NumPy, semantic and instance segmentation, and object detection outputs such as boxes and confidence scores.2 min read
07Chapter 7: Measuring overlap: IoU and mean IoUAssume you know basic Python, NumPy, convolutional neural networks, and the difference between a prediction and a ground-truth label. This chapter uses label maps: one integer class ID per pixel.2 min read
08Chapter 8: Encoder-decoder networks and upsamplingThis chapter assumes you know basic Python, NumPy, convolutional neural networks, image classification, and gradient-based training. You should also understand that a feature map is a grid of learned values produced inside a network.2 min read
09Chapter 9: Dilated convolutions and multi-scale contextAssume you know basic convolutional neural networks, feature maps, and gradient-based training. This chapter explains how segmentation models capture both fine boundaries and broad image context.2 min read
10Chapter 10: Training losses: cross-entropy and DiceAssume you know basic Python, NumPy, convolutional neural networks, gradient-based training, and object detection. This chapter focuses on how a segmentation model is trained, not how its output is represented.2 min read
11Chapter 11: Mask R-CNN: detect, then segmentThis chapter assumes that you know basic Python, convolutional neural networks, and object detection. You should also understand bounding boxes and confidence scores.2 min read
12Chapter 12: Evaluating instances with mask APAssume you know binary masks, object classes, confidence scores, intersection over union (IoU), and precision and recall. This chapter explains how to evaluate instance segmentation, where each detected object needs both the correct class and the correct pixels.2 min read
14Chapter 14: Scoring panoptic results with PQ, SQ, and RQAssume you know semantic and instance segmentation, intersection over union (IoU), and object-detection matching. Panoptic quality (PQ) evaluates one panoptic prediction that contains a class label and an instance identity for each pixel.2 min read
15Chapter 15: Unified mask classification with transformersAssume you know convolutional neural networks, object detection, and the difference between semantic, instance, and panoptic segmentation. This chapter explains how transformer-based models turn these tasks into one mask-prediction problem.2 min read
16Chapter 16: Datasets and annotation formatsAssume you know basic Python and NumPy, convolutional neural networks, object-detection boxes, and gradient-based training. This chapter focuses on how segmentation labels are stored and how those storage choices affect training and evaluation.1 min read
17Chapter 17: Promptable segmentation modelsAssume you know binary masks, IoU, convolutional neural networks, and basic object detection. Promptable segmentation models produce a mask from a user-provided hint instead of requiring a fixed object class list.2 min read
18Chapter 18: Common pitfalls and practical checksAssume you know basic Python and NumPy, convolutional neural networks, object detection, and gradient-based training. Segmentation systems often fail because of data or evaluation mistakes rather than because the model is too small. Check the full pipeline before changing the architecture.2 min read