Skip to content

Commit

Permalink
Rename metric.py to metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shensheng272 authored Sep 7, 2022
1 parent 3b8a3fb commit f06b323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov6/utils/metric.py → yolov6/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ def process_batch(detections, labels, iouv):
# matches = matches[matches[:, 2].argsort()[::-1]]
matches = matches[np.unique(matches[:, 0], return_index=True)[1]]
correct[matches[:, 1].astype(int), i] = True
return torch.tensor(correct, dtype=torch.bool, device=iouv.device)
return torch.tensor(correct, dtype=torch.bool, device=iouv.device)

0 comments on commit f06b323

Please sign in to comment.