zhengrongzhang jiliu1 commited on
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 <[email protected]>

Files changed (1) hide show
  1. widerface_evaluate/box_overlaps.py +1 -1
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.float)
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) *