From a56638fb68f4e8490b606e81a369c99bc75d9f47 Mon Sep 17 00:00:00 2001 From: Kai Zhang <81219212+ZephyrusKylin@users.noreply.github.com> Date: Tue, 6 Apr 2021 16:57:21 +0800 Subject: [PATCH] [Fix]: Fix bug in mean_ap by 11 points (#4875) --- mmdet/core/evaluation/mean_ap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdet/core/evaluation/mean_ap.py b/mmdet/core/evaluation/mean_ap.py index 25e72384..1d653a35 100644 --- a/mmdet/core/evaluation/mean_ap.py +++ b/mmdet/core/evaluation/mean_ap.py @@ -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') -- GitLab