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. '