Unverified Commit a56638fb authored by Kai Zhang's avatar Kai Zhang Committed by GitHub
Browse files

[Fix]: Fix bug in mean_ap by 11 points (#4875)

parent 681a0aae
......@@ -47,7 +47,7 @@ def average_precision(recalls, precisions, mode='area'):
precs = precisions[i, recalls[i, :] >= thr]
prec = precs.max() if precs.size > 0 else 0
ap[i] += prec
ap /= 11
ap /= 11
else:
raise ValueError(
'Unrecognized mode, only "area" and "11points" are supported')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment