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
vision
Commits
11821d62
Commit
11821d62
authored
Jan 12, 2017
by
Sam Gross
Browse files
Add ResNet-101 pre-trained model
parent
7d150e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
torchvision/models/resnet.py
torchvision/models/resnet.py
+6
-2
No files found.
torchvision/models/resnet.py
View file @
11821d62
...
...
@@ -11,6 +11,7 @@ model_urls = {
'resnet18'
:
'https://s3.amazonaws.com/pytorch/models/resnet18-5c106cde.pth'
,
'resnet34'
:
'https://s3.amazonaws.com/pytorch/models/resnet34-333f7ec4.pth'
,
'resnet50'
:
'https://s3.amazonaws.com/pytorch/models/resnet50-19c8e357.pth'
,
'resnet101'
:
'https://s3.amazonaws.com/pytorch/models/resnet101-5d3b4d8f.pth'
,
}
...
...
@@ -171,8 +172,11 @@ def resnet50(pretrained=False):
return
model
def
resnet101
():
return
ResNet
(
Bottleneck
,
[
3
,
4
,
23
,
3
])
def
resnet101
(
pretrained
=
False
):
model
=
ResNet
(
Bottleneck
,
[
3
,
4
,
23
,
3
])
if
pretrained
:
model
.
load_state_dict
(
model_zoo
.
load_url
(
model_urls
[
'resnet101'
]))
return
model
def
resnet152
():
...
...
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