Skip to content

Commit

Permalink
Update vcoco_eval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YueLiao authored Jan 2, 2021
1 parent fd57aaa commit 89736e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/eval/vcoco_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def compute_map(self):
max_recall[i] = np.max(rec)
# print('class {} --- ap: {} max recall: {} pos: {}'.format(self.verb_name_dict[self.verb_name_list[i]], ap[i], max_recall[i], sum_gt))
mAP = np.mean(ap[:])
mAP = (mAP - ap[20]) * 25 / 24
mAP = (mAP * 25 - ap[20]) / 24
m_rec = np.mean(max_recall[:])
print('--------------------')
print('mAP: {} max recall: {}'.format(mAP, m_rec))
Expand Down

0 comments on commit 89736e9

Please sign in to comment.