This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
def bbox_overlap_iou(bboxes1, bboxes2): | |
""" | |
Args: | |
bboxes1: shape (total_bboxes1, 4) | |
with x1, y1, x2, y2 point order. | |
bboxes2: shape (total_bboxes2, 4) | |
with x1, y1, x2, y2 point order. |