From b7ccaffa43ba9b9315222958f7e9e94ed89e5182 Mon Sep 17 00:00:00 2001 From: RockeyCoss <1350291943@qq.com> Date: Wed, 15 Dec 2021 12:22:26 +0800 Subject: [PATCH] fix option --- tools/deploy_test.py | 2 +- tools/print_config.py | 2 +- tools/test.py | 2 +- tools/train.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/deploy_test.py b/tools/deploy_test.py index 250a8e9d2a..fedd645a7e 100644 --- a/tools/deploy_test.py +++ b/tools/deploy_test.py @@ -207,7 +207,7 @@ def parse_args() -> argparse.Namespace: if 'LOCAL_RANK' not in os.environ: os.environ['LOCAL_RANK'] = str(args.local_rank) - if args.option and args.cfg_options: + if args.options and args.cfg_options: raise ValueError( '--options and --cfg-options cannot be both ' 'specified, --options is deprecated in favor of --cfg-options. ' diff --git a/tools/print_config.py b/tools/print_config.py index 3b505df8a7..3f9c08dd96 100644 --- a/tools/print_config.py +++ b/tools/print_config.py @@ -35,7 +35,7 @@ def parse_args(): 'is allowed.') args = parser.parse_args() - if args.option and args.cfg_options: + if args.options and args.cfg_options: raise ValueError( '--options and --cfg-options cannot be both ' 'specified, --options is deprecated in favor of --cfg-options. ' diff --git a/tools/test.py b/tools/test.py index f42eaa56ef..b04727413f 100644 --- a/tools/test.py +++ b/tools/test.py @@ -94,7 +94,7 @@ def parse_args(): if 'LOCAL_RANK' not in os.environ: os.environ['LOCAL_RANK'] = str(args.local_rank) - if args.option and args.cfg_options: + if args.options and args.cfg_options: raise ValueError( '--options and --cfg-options cannot be both ' 'specified, --options is deprecated in favor of --cfg-options. ' diff --git a/tools/train.py b/tools/train.py index bb2c0c580e..2e0b6e91f0 100644 --- a/tools/train.py +++ b/tools/train.py @@ -79,7 +79,7 @@ def parse_args(): if 'LOCAL_RANK' not in os.environ: os.environ['LOCAL_RANK'] = str(args.local_rank) - if args.option and args.cfg_options: + if args.options and args.cfg_options: raise ValueError( '--options and --cfg-options cannot be both ' 'specified, --options is deprecated in favor of --cfg-options. '