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
067d5086
Commit
067d5086
authored
Aug 06, 2019
by
Yang Li
Committed by
Kai Chen
Aug 06, 2019
Browse files
Fix multiple err_msg logging in distribuited mode (#103)
parent
c6f2caea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/runner/checkpoint.py
mmcv/runner/checkpoint.py
+2
-1
No files found.
mmcv/runner/checkpoint.py
View file @
067d5086
...
...
@@ -93,7 +93,8 @@ def load_state_dict(module, state_dict, strict=False, logger=None):
table
=
AsciiTable
(
table_data
)
err_msg
.
append
(
mismatch_info
+
table
.
table
)
if
len
(
err_msg
)
>
0
:
rank
,
_
=
get_dist_info
()
if
len
(
err_msg
)
>
0
and
rank
==
0
:
err_msg
.
insert
(
0
,
'The model and loaded state dict do not match exactly
\n
'
)
err_msg
=
'
\n
'
.
join
(
err_msg
)
...
...
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