All models

s3d

A video classifier that splits each 3D convolution into a spatial convolution and a temporal one.

Video · 257 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 (47 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
8.3M
Operations
257
Framework
PyTorch
Recurrent
No
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
m8995
Graph hash
507ebb9150ea9527c3c63f03e7cbc852df79c1b43eb6f2ed6332fa5b00206229
Skeleton hash
d603a6bb0d5daa403a76f1cbfc5354c7fdf6f4303674fcece9ebca5740dfe06f
Architecture hash
c09604d531e769c913cfbf825be5c42b6fc93d871ca7fd2352eddabe07a9ecff
Diagram SHA-256
5a6b2e5515333ddade27ae068a8244d26877210dbc376614c69d20fc7da71b8c
TorchLens version
2.35.3
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('s3d', weights=None)

What it is

S3D, short for separable 3D CNN, is a network for video classification: it takes a clip and assigns it to a category. It comes from a study that looks for a balance between speed and accuracy by working through the main network design choices one at a time.

The starting point is I3D, a 3D CNN that performs well but that the paper calls very computationally expensive. S3D replaces each 3D convolution with a spatial convolution followed by a temporal one, so a filter of the form kt × k × k becomes 1 × k × k followed by kt × 1 × 1. The paper reports that S3D has many fewer parameters than models that use standard 3D convolution and is more computationally efficient. It also reports better accuracy than the original I3D model.

The same study asks which layers need 3D convolution at all, and finds that models keeping it only in the top layers are often more accurate. Adding a spatio-temporal gating mechanism gives a further model the authors call S3D-G. The paper evaluates on Kinetics, Something-something, UCF101 and HMDB for action classification, and on JHMDB and UCF101-24 for action detection.

Key idea. S3D replaces 3D convolutions with separable spatial and temporal convolutions, which the paper reports gives fewer parameters, lower computational cost and better accuracy than the original I3D model.

  • s3d
  • separable 3d cnn
  • separable 3d convolution
  • rethinking spatiotemporal feature learning
  • video classification
  • action classification
  • spatiotemporal convolution
  • 3d cnn

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