mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Fix] revise --option to --options #1140
This commit is contained in:
parent
bc4835d1e9
commit
4e9a95d4f2
@ -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. '
|
||||
|
@ -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. '
|
||||
|
@ -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. '
|
||||
|
@ -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. '
|
||||
|
Loading…
x
Reference in New Issue
Block a user