
mc3_18
Video68 ops11.7M params
An 18-layer residual network whose convolutions span time as well as space, for clip-level action recognition.
Video · 68 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
torchvision.models.get_model('r3d_18', weights=None) This is a 3D ResNet, a residual network whose convolutions run over time as well as space, built for recognising actions in short video clips. The paper it comes from asks a blunt question about video models: 2D networks applied to individual frames had remained solid action-recognition performers, so does temporal reasoning matter at all? Its answer is to revisit 3D convolutions inside the residual-learning framework and compare several ways of mixing spatial and temporal filtering under matched depth.
R3D keeps a 4D tensor of channels by frames by height by width throughout, and every filter has a temporal extent t as well as spatial size d by d, with t set to 3. The blocks are the plain two-convolution residual blocks without bottlenecks, each convolution followed by a ReLU. In torchvision this is the r3d_18 builder, described as an 18 layer Resnet3D model. The 18-layer network takes clips of 112 by 112 RGB frames, downsamples spatially once at the first convolution and then three times in space and time at the start of each later group. A global spatiotemporal pooling layer yields a 512-dimensional feature vector that feeds a fully connected layer with softmax. The size of that final layer matches the number of classes, which is 400 for Kinetics.
On Kinetics, with all models held to 18 layers and trained from scratch, the 3D and mixed-convolution ResNets beat the 2D ResNets by 1.3 to 4% on 8-frame clips and by more on 16-frame clips. The authors read that as evidence that motion modelling matters for action recognition. But the paper's real proposal is not R3D itself: factorising each 3D convolution into a 2D spatial and a 1D temporal convolution, the R(2+1)D block, trains to lower error at the same parameter count. R3D is the full-3D baseline in that study, listed at 33.4M parameters for the 18-layer network. On Sports-1M, the 8-frame R3D baseline fell 2.3% short of R(2+1)D in clip accuracy, which the authors take as confirmation of their decomposition.
Key idea. An empirical study showing that 3D ResNets significantly outperform 2D ResNets of the same depth on large action-recognition benchmarks. Factorising the 3D filters into separate spatial and temporal components yields further accuracy gains, giving the R(2+1)D block.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{tran2018closerlookspatiotemporalconvolutions,
title={A Closer Look at Spatiotemporal Convolutions for Action Recognition},
author={Du Tran and Heng Wang and Lorenzo Torresani and Jamie Ray and Yann LeCun and Manohar Paluri},
year={2018},
eprint={1711.11248},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1711.11248},
}