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
ddd14ffc
Unverified
Commit
ddd14ffc
authored
Aug 17, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Aug 17, 2021
Browse files
Don't download backbone weights if pretrained=True (#4283)
parent
8e2bd0e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
torchvision/models/segmentation/segmentation.py
torchvision/models/segmentation/segmentation.py
+2
-0
No files found.
torchvision/models/segmentation/segmentation.py
View file @
ddd14ffc
...
...
@@ -186,6 +186,8 @@ def lraspp_mobilenet_v3_large(pretrained=False, progress=True, num_classes=21, *
raise
NotImplementedError
(
'This model does not use auxiliary loss'
)
backbone_name
=
'mobilenet_v3_large'
if
pretrained
:
kwargs
[
"pretrained_backbone"
]
=
False
model
=
_segm_lraspp_mobilenetv3
(
backbone_name
,
num_classes
,
**
kwargs
)
if
pretrained
:
...
...
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