Skip to content

Commit

Permalink
[Fix] Fix an error on indexing scalar metrics in analyze_result.py (o…
Browse files Browse the repository at this point in the history
…pen-mmlab#518)

* [Fix] Error on indexing scalar metrics

* [Fix] Error on indexing scalar metrics

Co-authored-by: Ma Zerun <mzr1996@163.com>

Co-authored-by: Ma Zerun <mzr1996@163.com>
  • Loading branch information
imyhxy and mzr1996 committed Nov 5, 2021
1 parent 9bb1103 commit ee307d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/analysis_tools/analyze_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ def main():
outputs['gt_label'] = gt_labels
outputs['gt_class'] = gt_classes

need_keys = [
'filename', 'gt_label', 'gt_class', 'pred_score', 'pred_label',
'pred_class'
]
outputs = {k: v for k, v in outputs.items() if k in need_keys}
outputs_list = list()
for i in range(len(gt_labels)):
output = dict()
Expand Down

0 comments on commit ee307d4

Please sign in to comment.