Skip to content

Commit

Permalink
Merge pull request #21 from peabody124/numpy_int_issue
Browse files Browse the repository at this point in the history
np.float -> float
  • Loading branch information
peabody124 authored Apr 6, 2023
2 parents 16f9b02 + b2b8dfd commit c987d43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Detection_YOLO(object):
"""

def __init__(self, tlwh, confidence, cls):
self.tlwh = np.asarray(tlwh, dtype=np.float)
self.tlwh = np.asarray(tlwh, dtype=float)
self.confidence = float(confidence)
self.cls = cls

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def non_max_suppression(boxes, max_bbox_overlap, scores=None):
if len(boxes) == 0:
return []

boxes = boxes.astype(np.float)
boxes = boxes.astype(float)
pick = []

x1 = boxes[:, 0]
Expand Down

0 comments on commit c987d43

Please sign in to comment.