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
9168476a
Commit
9168476a
authored
Aug 01, 2019
by
Bruno Korbar
Committed by
Francisco Massa
Aug 01, 2019
Browse files
[model cln] unused rMCX builder (#1188)
parent
9034749d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
torchvision/models/video/mixed_conv.py
torchvision/models/video/mixed_conv.py
+0
-29
No files found.
torchvision/models/video/mixed_conv.py
View file @
9168476a
...
...
@@ -36,35 +36,6 @@ def _mcX(model_depth, X=3, use_pool1=False, **kwargs):
return
model
def
_rmcX
(
model_depth
,
X
=
3
,
use_pool1
=
False
,
**
kwargs
):
"""Generate reverse mixed convolution network as in
https://arxiv.org/abs/1711.11248
Args:
model_depth (int): trunk depth - supports most resnet depths
X (int): Up to which layers are convolutions 2D
use_pool1 (bool, optional): Add pooling layer to the stem. Defaults to False.
Returns:
nn.Module: mcX video trunk
"""
assert
X
>
1
and
X
<=
5
conv_makers
=
[
Conv3DNoTemporal
]
*
(
X
-
2
)
while
len
(
conv_makers
)
<
5
:
conv_makers
.
append
(
Conv3DSimple
)
if
model_depth
<
50
:
block
=
BasicBlock
else
:
block
=
Bottleneck
model
=
VideoTrunkBuilder
(
block
=
block
,
conv_makers
=
conv_makers
,
model_depth
=
model_depth
,
stem
=
get_default_stem
(
use_pool1
=
use_pool1
),
**
kwargs
)
return
model
def
mc3_18
(
use_pool1
=
False
,
**
kwargs
):
"""Constructor for 18 layer Mixed Convolution network as in
https://arxiv.org/abs/1711.11248
...
...
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