From 4e9a95d4f23e2d591fb4c2dc9df119cfa9bdccd7 Mon Sep 17 00:00:00 2001 From: Rockey <41846794+RockeyCoss@users.noreply.github.com> Date: Wed, 15 Dec 2021 15:24:08 +0800 Subject: [PATCH] [Fix] revise --option to --options #1140 --- 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 250a8e9d2..fedd645a7 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 3b505df8a..3f9c08dd9 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 f42eaa56e..b04727413 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 bb2c0c580..2e0b6e91f 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. '