Skip to content

Commit

Permalink
remove deprecated alias for float
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnv1 committed Dec 6, 2021
1 parent 954e8ed commit b63fbae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lapixdl/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def calculate_pairwise_bbox_ious(gt_bboxes: List[BBox],
List[List[float]]: [gt x pred] matrix of pairwise IoUs of GT and predicted bboxes
"""

ious = np.zeros((len(gt_bboxes), len(pred_bboxes)), np.float)
ious = np.zeros((len(gt_bboxes), len(pred_bboxes)), float)

for i, gt_bbox in enumerate(gt_bboxes):
for j, pred_bbox in enumerate(pred_bboxes):
Expand Down Expand Up @@ -232,7 +232,7 @@ def calculate_iou_by_class(gt_bboxes: List[BBox],
List[float]: IoUs of an image indexed by class
"""

ious = np.zeros(classes_count, np.float)
ious = np.zeros(classes_count, float)

for i in range(classes_count):
ious[i] = __calculate_binary_iou([gt_bbox for gt_bbox in gt_bboxes if gt_bbox.cls == i],
Expand Down

0 comments on commit b63fbae

Please sign in to comment.