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
c9d464c3
Commit
c9d464c3
authored
Nov 02, 2021
by
WangJiaZhen
Committed by
Wenwei Zhang
Nov 03, 2021
Browse files
[Improve] improve checkpoint loading log (#1446)
parent
fd6eab69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mmcv/runner/base_runner.py
mmcv/runner/base_runner.py
+0
-2
mmcv/runner/checkpoint.py
mmcv/runner/checkpoint.py
+2
-1
No files found.
mmcv/runner/base_runner.py
View file @
c9d464c3
...
...
@@ -334,8 +334,6 @@ class BaseRunner(metaclass=ABCMeta):
map_location
=
'cpu'
,
strict
=
False
,
revise_keys
=
[(
r
'^module.'
,
''
)]):
self
.
logger
.
info
(
'load checkpoint from %s'
,
filename
)
return
load_checkpoint
(
self
.
model
,
filename
,
...
...
mmcv/runner/checkpoint.py
View file @
c9d464c3
...
...
@@ -240,7 +240,8 @@ class CheckpointLoader:
checkpoint_loader
=
cls
.
_get_checkpoint_loader
(
filename
)
class_name
=
checkpoint_loader
.
__name__
mmcv
.
print_log
(
f
'Use
{
class_name
}
loader'
,
logger
)
mmcv
.
print_log
(
f
'load checkpoint from
{
class_name
[
10
:]
}
path:
{
filename
}
'
,
logger
)
return
checkpoint_loader
(
filename
,
map_location
)
...
...
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