Skip to content

Commit

Permalink
example/ssd/evaluate/eval_metric.py (apache#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 haohuw committed Jun 23, 2019
1 parent 34654de commit 2e3110f
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 2e3110f

Please sign in to comment.