Skip to content

Commit

Permalink
change np.float to np.float32
Browse files Browse the repository at this point in the history
  • Loading branch information
levan92 committed Jan 16, 2023
1 parent 2491e6d commit 043cb5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deep_sort_realtime/deep_sort/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Detection(object):

def __init__(self, ltwh, confidence, feature, class_name=None, instance_mask=None, others=None):
# def __init__(self, ltwh, feature):
self.ltwh = np.asarray(ltwh, dtype=np.float)
self.ltwh = np.asarray(ltwh, dtype=np.float32)
self.confidence = float(confidence)
self.feature = np.asarray(feature, dtype=np.float32)
self.class_name = class_name
Expand Down
2 changes: 1 addition & 1 deletion deep_sort_realtime/utils/nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def non_max_suppression(boxes, max_bbox_overlap, scores=None):
if len(boxes) == 0:
return []

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

x1 = boxes[:, 0]
Expand Down

0 comments on commit 043cb5e

Please sign in to comment.