Learn Before
Anchor Box Labeling Example
To illustrate anchor box labeling, consider an image containing ground-truth bounding boxes for a dog and a cat, alongside a set of five generated anchor boxes, denoted as . The labeling process evaluates the pairs of anchor boxes and ground-truth bounding boxes based on Intersection over Union (IoU). For example, if the IoU between anchor box and the cat's ground-truth bounding box is the largest among all pairs, is labeled as the cat. Removing all pairs containing or the cat's bounding box, if the remaining pair with the largest IoU is and the dog's bounding box, is labeled as the dog. For the remaining unlabeled anchor boxes (e.g., ), they are assigned to the ground-truth bounding box with the highest IoU only if that IoU exceeds a predefined threshold (e.g., ). Thus, if has an IoU with the cat exceeding the threshold, it is labeled as the cat; conversely, if and have maximum IoUs below the threshold, they are labeled as the background class.
0
1
Tags
D2L
Dive into Deep Learning @ D2L