Skip to content

Commit

Permalink
Merge pull request open-mmlab#885 from SCZwangxiao/master
Browse files Browse the repository at this point in the history
[fix] Correct the key name of  ‘eval_results’ dictionary for metric 'mmit_mean_average_precision'
  • Loading branch information
kennymckormick authored May 25, 2021
2 parents 867b022 + 90e50e0 commit ae5fb59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mmaction/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,12 @@ def evaluate(self,
]
if metric == 'mean_average_precision':
mAP = mean_average_precision(results, gt_labels)
eval_results['mean_average_precision'] = mAP
log_msg = f'\nmean_average_precision\t{mAP:.4f}'
elif metric == 'mmit_mean_average_precision':
mAP = mmit_mean_average_precision(results, gt_labels)
eval_results['mean_average_precision'] = mAP
log_msg = f'\nmean_average_precision\t{mAP:.4f}'
eval_results['mmit_mean_average_precision'] = mAP
log_msg = f'\nmmit_mean_average_precision\t{mAP:.4f}'
print_log(log_msg, logger=logger)
continue

Expand Down

0 comments on commit ae5fb59

Please sign in to comment.