From 33b6543180d74b9570b741c86cb7513928b30074 Mon Sep 17 00:00:00 2001 From: sunrongda <38203631+sunrongda@users.noreply.github.com> Date: Tue, 2 Apr 2019 02:22:16 +0800 Subject: [PATCH] example/ssd/evaluate/eval_metric.py (#14561) * eval_metric.py * Update eval_metric.py * Update eval_metric.py --- example/ssd/evaluate/eval_metric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ssd/evaluate/eval_metric.py b/example/ssd/evaluate/eval_metric.py index bb2b77b3d52b..1deb381fb859 100644 --- a/example/ssd/evaluate/eval_metric.py +++ b/example/ssd/evaluate/eval_metric.py @@ -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]