Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
example/ssd/evaluate/eval_metric.py (#14561)
Browse files Browse the repository at this point in the history
* eval_metric.py

* Update eval_metric.py

* Update eval_metric.py
  • Loading branch information
sunrongda authored and nswamy committed Apr 5, 2019
1 parent e444341 commit e5aadca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/ssd/evaluate/eval_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def iou(x, ys):
dets = pred[indices]
pred = np.delete(pred, indices, axis=0)
# sort by score, desceding
dets[dets[:,1].argsort()[::-1]]
dets = dets[dets[:,1].argsort()[::-1]]
records = np.hstack((dets[:, 1][:, np.newaxis], np.zeros((dets.shape[0], 1))))
# ground-truths
label_indices = np.where(label[:, 0].astype(int) == cid)[0]
Expand Down

0 comments on commit e5aadca

Please sign in to comment.