From 4a552d0db7d3410d5e26209aaa7dea7a99d53914 Mon Sep 17 00:00:00 2001 From: ly015 Date: Fri, 5 Mar 2021 00:09:36 +0800 Subject: [PATCH] fix minor typos (#514) --- tools/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test.py b/tools/test.py index 82ea8cc82b..1502b3a0ac 100644 --- a/tools/test.py +++ b/tools/test.py @@ -27,7 +27,7 @@ def parse_args(): 'the inference speed') parser.add_argument( '--eval', - default='mAP', + default=None, nargs='+', help='evaluation metric, which depends on the dataset,' ' e.g., "mAP" for MSCOCO') @@ -126,7 +126,7 @@ def main(): args.gpu_collect) rank, _ = get_dist_info() - eval_config = cfg.get('eval_config', {}) + eval_config = cfg.get('evaluation', {}) eval_config = merge_configs(eval_config, dict(metric=args.eval)) if rank == 0: