Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
3b46ddf0
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "658e60cf7331dfd12672de1195a8c10ca1d82f08"
Commit
3b46ddf0
authored
Aug 09, 2019
by
ZongYuan Zhan
Committed by
Kai Chen
Aug 09, 2019
Browse files
Fix spelling mistake in Config.auto_argparser. (#106)
parent
7cb4d804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/utils/config.py
mmcv/utils/config.py
+1
-1
No files found.
mmcv/utils/config.py
View file @
3b46ddf0
...
@@ -103,7 +103,7 @@ class Config(object):
...
@@ -103,7 +103,7 @@ class Config(object):
partial_parser
=
ArgumentParser
(
description
=
description
)
partial_parser
=
ArgumentParser
(
description
=
description
)
partial_parser
.
add_argument
(
'config'
,
help
=
'config file path'
)
partial_parser
.
add_argument
(
'config'
,
help
=
'config file path'
)
cfg_file
=
partial_parser
.
parse_known_args
()[
0
].
config
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
=
ArgumentParser
(
description
=
description
)
parser
.
add_argument
(
'config'
,
help
=
'config file path'
)
parser
.
add_argument
(
'config'
,
help
=
'config file path'
)
add_args
(
parser
,
cfg
)
add_args
(
parser
,
cfg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment