All models

swin3d_t

Video Swin Transformer: the image Swin's local attention extended to video clips for action recognition.

Video · 787 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 (29 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
Family
swin 3d
Parameters
28.2M
Operations
787
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
2,292 (as of 29 October 2026)
Authors
Ze Liu, Jia Ning, Yue Cao 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
m10409
Graph hash
3be8019284e546e2073975b27789eeaa95403b5a69d69affb0e243c98cf2169c
Skeleton hash
366d72ccbab5f1cfa9b58c12e1b46728420b87ae60a98cbd9c9e00060174fbd2
Architecture hash
41dbc4bb4bbb56586f23e8b259d132a2aa96f42496c05ff250a586d703594b7e
Diagram SHA-256
4aca07eb20e3277b46905817071df34db8eae4a07256d414888dc44a9be8ff5a
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('swin3d_t', weights=None)

What it is

About this model's family

Video Swin Transformer carries the Swin Transformer's local attention from images to video: instead of letting every patch attend to every other patch across space and time, attention stays within a neighbourhood. The paper argues that this locality is the right inductive bias for video Transformers, and that it gives a better speed-accuracy trade-off than approaches that compute self-attention globally, even when those factorize space and time. Because the design adapts the image model rather than replacing it, it keeps leveraging pre-trained image models.

The paper reports state-of-the-art accuracy across video recognition benchmarks: 84.9 top-1 on Kinetics-400 and 86.1 top-1 on Kinetics-600, with about 20x less pre-training data and a 3x smaller model size, plus 69.6 top-1 on Something-Something v2 for temporal modeling. The three graphs here are torchvision's swin3d_t, swin3d_s and swin3d_b, three builds of the one architecture, the Swin Transformer designed for the image domain and adapted to clips.

Key idea. Locality as the inductive bias for video Transformers: adapting the image Swin Transformer to video gives a better speed-accuracy trade-off than global spatiotemporal self-attention.

  • Video Swin Transformer
  • video swin
  • swin3d
  • swin3d_t
  • swin3d_s
  • swin3d_b
  • action recognition
  • video classification
  • Kinetics
  • Something-Something
  • torchvision

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

Cite the paper

@article{swin3d2022,
  title = {Video Swin Transformer},
  author = {Ze Liu and Jia Ning and Yue Cao and Yixuan Wei and Zheng Zhang and Stephen Ching-Feng Lin and Han Hu},
  year = {2022},
  journal = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  eprint = {2106.13230}
}