generalized_box_iou | R Documentation |
Return generalized intersection-over-union (Jaccard index) of boxes.
Both sets of boxes are expected to be in (x_{min}, y_{min}, x_{max}, y_{max})
format with
0 \leq x_{min} < x_{max}
and 0 \leq y_{min} < y_{max}
.
generalized_box_iou(boxes1, boxes2)
boxes1 |
(Tensor[N, 4]) |
boxes2 |
(Tensor[M, 4]) |
Implementation adapted from https://github.com/facebookresearch/detr/blob/master/util/box_ops.py
generalized_iou (Tensor[N, M]): the NxM matrix containing the pairwise generalized_IoU values for every element in boxes1 and boxes2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.