update box_overlaps.py to fix numpy data type.
#11
by
jiliu1
- opened
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) *
|