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
c234cdea
Unverified
Commit
c234cdea
authored
May 22, 2019
by
Kai Chen
Committed by
GitHub
May 22, 2019
Browse files
add model urls for HRNet (#68)
parent
8e84059c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
mmcv/runner/checkpoint.py
mmcv/runner/checkpoint.py
+8
-5
No files found.
mmcv/runner/checkpoint.py
View file @
c234cdea
...
@@ -25,6 +25,9 @@ open_mmlab_model_urls = {
...
@@ -25,6 +25,9 @@ open_mmlab_model_urls = {
'jhu/resnext101_32x4d_gn_ws'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext101_32x4d_gn_ws-34ac1a9e.pth'
,
# noqa: E501
'jhu/resnext101_32x4d_gn_ws'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext101_32x4d_gn_ws-34ac1a9e.pth'
,
# noqa: E501
'jhu/resnext50_32x4d_gn'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext50_32x4d_gn-c7e8b754.pth'
,
# noqa: E501
'jhu/resnext50_32x4d_gn'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext50_32x4d_gn-c7e8b754.pth'
,
# noqa: E501
'jhu/resnext101_32x4d_gn'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext101_32x4d_gn-ac3bb84e.pth'
,
# noqa: E501
'jhu/resnext101_32x4d_gn'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext101_32x4d_gn-ac3bb84e.pth'
,
# noqa: E501
'msra/hrnetv2_w18'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/hrnetv2_w18-00eb2006.pth'
,
# noqa: E501
'msra/hrnetv2_w32'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/hrnetv2_w32-dc9eeb4f.pth'
,
# noqa: E501
'msra/hrnetv2_w40'
:
'https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/hrnetv2_w40-ed0b031c.pth'
,
# noqa: E501
}
# yapf: disable
}
# yapf: disable
...
@@ -57,11 +60,11 @@ def load_state_dict(module, state_dict, strict=False, logger=None):
...
@@ -57,11 +60,11 @@ def load_state_dict(module, state_dict, strict=False, logger=None):
try
:
try
:
own_state
[
name
].
copy_
(
param
)
own_state
[
name
].
copy_
(
param
)
except
Exception
:
except
Exception
:
raise
RuntimeError
(
'While copying the parameter named {}, '
raise
RuntimeError
(
'whose dimensions
in the
model are {} and
'
'While copy
in
g
the
parameter named {},
'
'whose dimensions in the
checkpoint
are {}
.
'
'whose dimensions in the
model
are {}
and
'
.
format
(
name
,
own_state
[
name
].
size
(),
'whose dimensions in the checkpoint are {}.'
.
format
(
param
.
size
()))
name
,
own_state
[
name
].
size
(),
param
.
size
()))
missing_keys
=
set
(
own_state
.
keys
())
-
set
(
state_dict
.
keys
())
missing_keys
=
set
(
own_state
.
keys
())
-
set
(
state_dict
.
keys
())
err_msg
=
[]
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