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
a161098e
Unverified
Commit
a161098e
authored
May 16, 2022
by
Vasilis Vryniotis
Committed by
GitHub
May 16, 2022
Browse files
Update ShuffleNetV2 annotations for x1_5 and x2_0 variants (#6022)
parent
01664a8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/shufflenetv2.py
torchvision/models/shufflenetv2.py
+2
-2
No files found.
torchvision/models/shufflenetv2.py
View file @
a161098e
...
@@ -316,7 +316,7 @@ def shufflenet_v2_x1_0(
...
@@ -316,7 +316,7 @@ def shufflenet_v2_x1_0(
return
_shufflenetv2
(
weights
,
progress
,
[
4
,
8
,
4
],
[
24
,
116
,
232
,
464
,
1024
],
**
kwargs
)
return
_shufflenetv2
(
weights
,
progress
,
[
4
,
8
,
4
],
[
24
,
116
,
232
,
464
,
1024
],
**
kwargs
)
@
handle_legacy_interface
(
weights
=
(
"pretrained"
,
None
))
@
handle_legacy_interface
(
weights
=
(
"pretrained"
,
ShuffleNet_V2_X1_5_Weights
.
IMAGENET1K_V1
))
def
shufflenet_v2_x1_5
(
def
shufflenet_v2_x1_5
(
*
,
weights
:
Optional
[
ShuffleNet_V2_X1_5_Weights
]
=
None
,
progress
:
bool
=
True
,
**
kwargs
:
Any
*
,
weights
:
Optional
[
ShuffleNet_V2_X1_5_Weights
]
=
None
,
progress
:
bool
=
True
,
**
kwargs
:
Any
)
->
ShuffleNetV2
:
)
->
ShuffleNetV2
:
...
@@ -346,7 +346,7 @@ def shufflenet_v2_x1_5(
...
@@ -346,7 +346,7 @@ def shufflenet_v2_x1_5(
return
_shufflenetv2
(
weights
,
progress
,
[
4
,
8
,
4
],
[
24
,
176
,
352
,
704
,
1024
],
**
kwargs
)
return
_shufflenetv2
(
weights
,
progress
,
[
4
,
8
,
4
],
[
24
,
176
,
352
,
704
,
1024
],
**
kwargs
)
@
handle_legacy_interface
(
weights
=
(
"pretrained"
,
None
))
@
handle_legacy_interface
(
weights
=
(
"pretrained"
,
ShuffleNet_V2_X2_0_Weights
.
IMAGENET1K_V1
))
def
shufflenet_v2_x2_0
(
def
shufflenet_v2_x2_0
(
*
,
weights
:
Optional
[
ShuffleNet_V2_X2_0_Weights
]
=
None
,
progress
:
bool
=
True
,
**
kwargs
:
Any
*
,
weights
:
Optional
[
ShuffleNet_V2_X2_0_Weights
]
=
None
,
progress
:
bool
=
True
,
**
kwargs
:
Any
)
->
ShuffleNetV2
:
)
->
ShuffleNetV2
:
...
...
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