Commit
•
7b69507
1
Parent(s):
50b47e8
update box_overlaps.py to fix numpy data type. (#11)
Browse files- update box_overlaps.py to fix numpy data type. (06e6650658f7ae4ce38fef1b6fa325e2074c3d8b)
Co-authored-by: Ji Liu <jiliu1@users.noreply.huggingface.co>
widerface_evaluate/box_overlaps.py
CHANGED
@@ -12,7 +12,7 @@ def bbox_overlaps(boxes, query_boxes):
|
|
12 |
"""
|
13 |
N = boxes.shape[0]
|
14 |
K = query_boxes.shape[0]
|
15 |
-
overlaps = np.zeros((N, K), dtype=np.
|
16 |
|
17 |
box_area = (
|
18 |
(query_boxes[:, 2] - query_boxes[:, 0] + 1) *
|
|
|
12 |
"""
|
13 |
N = boxes.shape[0]
|
14 |
K = query_boxes.shape[0]
|
15 |
+
overlaps = np.zeros((N, K), dtype=np.float32)
|
16 |
|
17 |
box_area = (
|
18 |
(query_boxes[:, 2] - query_boxes[:, 0] + 1) *
|