iou#

iou(boxlist1: NpBoxList, boxlist2: NpBoxList) ndarray[source]#

Computes pairwise intersection-over-union between box collections.

Parameters
  • boxlist1 (BoxList) – BoxList holding N boxes.

  • boxlist2 (BoxList) – BoxList holding M boxes.

Returns

A numpy array with shape [N, M] representing pairwise iou scores.

Return type

np.ndarray