Skip to content

[model cln] unused rMCX builder #1188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions torchvision/models/video/mixed_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down