From faf91a4cfe2568974bf0e3361f989d7b2f17cb34 Mon Sep 17 00:00:00 2001 From: Gyeongbo Sim Date: Fri, 10 Feb 2023 10:37:24 +0900 Subject: [PATCH] Fix mAP index error --- src/lib/eval/hico_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eval/hico_eval.py b/src/lib/eval/hico_eval.py index c768dab..e844f79 100644 --- a/src/lib/eval/hico_eval.py +++ b/src/lib/eval/hico_eval.py @@ -103,7 +103,7 @@ def compute_map(self): ap[i] = self.voc_ap(rec, prec) max_recall[i] = np.max(rec) # print('class {} --- ap: {} max recall: {}'.format( - # self.verb_name_dict[i], ap[i-1], max_recall[i-1])) + # self.verb_name_dict[i], ap[i], max_recall[i])) mAP = np.mean(ap[:]) mAP_rare = np.mean(ap[self.r_inds]) mAP_nonrare = np.mean(ap[self.c_inds])