diff --git a/example/ssd/evaluate/eval_voc.py b/example/ssd/evaluate/eval_voc.py index f8f92e1fd6a9..f4744d19f8f3 100644 --- a/example/ssd/evaluate/eval_voc.py +++ b/example/ssd/evaluate/eval_voc.py @@ -51,8 +51,8 @@ def voc_ap(rec, prec, use_07_metric=False): ap += p / 11. else: # append sentinel values at both ends - mrec = np.concatenate([0.], rec, [1.]) - mpre = np.concatenate([0.], prec, [0.]) + mrec = np.concatenate(([0.], rec, [1.])) + mpre = np.concatenate(([0.], prec, [0.])) # compute precision integration ladder for i in range(mpre.size - 1, 0, -1):