Activity (Process)

Ground-Truth Bounding Box Assignment to Anchor Boxes

To assign ground-truth bounding boxes to anchor boxes, we use an iterative algorithm based on their Intersection over Union (IoU). Given nan_a anchor boxes and nbn_b ground-truth bounding boxes (where nanbn_a \geq n_b), we compute a matrix XRnaimesnb\mathbf{X} \in \mathbb{R}^{n_a imes n_b} where each element xijx_{ij} is the IoU between anchor box AiA_i and ground-truth box BjB_j. First, we find the largest element in X\mathbf{X}, assign the corresponding ground-truth box to the anchor box, and discard its entire row and column. We repeat this process of finding the largest remaining element and discarding its row and column until all nbn_b ground-truth boxes are assigned. Finally, we evaluate the remaining nanbn_a - n_b unassigned anchor boxes, assigning each to the ground-truth box with the highest IoU in its row, provided that this maximum IoU is strictly greater than a predefined threshold.

0

1

Updated 2026-05-20

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L