mirror of https://github.com/open-mmlab/mmcv.git
Fix spelling mistake in Config.auto_argparser. (#106)
parent
7cb4d804e2
commit
3b46ddf0d3
|
@ -103,7 +103,7 @@ class Config(object):
|
|||
partial_parser = ArgumentParser(description=description)
|
||||
partial_parser.add_argument('config', help='config file path')
|
||||
cfg_file = partial_parser.parse_known_args()[0].config
|
||||
cfg = Config.from_file(cfg_file)
|
||||
cfg = Config.fromfile(cfg_file)
|
||||
parser = ArgumentParser(description=description)
|
||||
parser.add_argument('config', help='config file path')
|
||||
add_args(parser, cfg)
|
||||
|
|
Loading…
Reference in New Issue