Skip to content

Commit

Permalink
Fix incorrect reference to member output_dir (nutonomy#45)
Browse files Browse the repository at this point in the history
Doing the same here, so that run_eval() works even when not called as __main__.
  • Loading branch information
eskjorg authored and holger-motional committed Feb 22, 2019
1 parent 5486c38 commit 82fcb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-sdk/nuscenes/eval/nuscenes_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def run_eval(self) -> Dict:
'weighted_sum': weighted_sum,
'eval_time': eval_time
}
with open(os.path.join(output_dir, 'metrics.json'), 'w') as f:
with open(os.path.join(self.output_dir, 'metrics.json'), 'w') as f:
json.dump(all_metrics, f, indent=2)

return all_metrics
Expand Down

0 comments on commit 82fcb4c

Please sign in to comment.