All models

r3d_18

An 18-layer residual network whose convolutions span time as well as space, for clip-level action recognition.

Video · 68 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (36 KB)

Open in a new tab

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.

At a glance

Task
Video
Parameters
33.4M
Operations
68
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2017)
Cited by
3,760 (as of 5 October 2026)
Authors
Du Tran, Heng Wang, L. Torresani and others
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8560
Graph hash
69cc36cb98e51a7883eebcc9a5e62eec82610e85ac2a10c1625aa7a90bfbc6d1
Skeleton hash
9f8ff213a8de9d8dd36d3fb9cf83eeaff5c8392a6217ef3d01e6e2f2e76a7b51
Architecture hash
8e997b4c34b06b39839fc43cbb9a098c235fb7446c7c1e88fba1775b0cf8350d
Diagram SHA-256
5d818225266a28b3216504c5960c78ba81d3b343e0e9043df57f84d4705a7671
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

torchvision.models.get_model('r3d_18', weights=None)

What it is

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.

  • 3d resnet
  • r3d
  • r3d_18
  • r3d-18
  • resnet3d
  • 3d convolutional network
  • action recognition
  • video classification
  • kinetics
  • spatiotemporal convolutions
  • torchvision video

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}