generalized_box_iou torchvision.ops.generalized_box_iou(boxes1: Tensor, boxes2: Tensor) → Tensor[source] Return generalized intersection-over-union (Jaccard index) between two sets of boxes. Both sets of boxes are expected to be in (x1, y1, format with and .