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

Commit

Permalink
fix np.concatenate error (#5503)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzmssg authored and piiswrong committed Mar 21, 2017
1 parent ca53cb4 commit 5e9e3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/ssd/evaluate/eval_voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5e9e3d0

Please sign in to comment.