All models

swin3d_s

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

Video · 1,585 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 (23 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
49.8M
Operations
1,585
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
m10407
Graph hash
49734a18c46e30f82495f831d5257ba306b1c8b0bb0ed042273765c17c53b724
Skeleton hash
794cb6edd50d9b3168518d307bf4e8b4249b7e85ca8bc7fd18b9723116ef6942
Architecture hash
590d44abf9a5a2e469faf4ba510f0d6d1e777e364f2086e792c4c08d9e12288b
Diagram SHA-256
5193cd56b39e53a007ff2558f4c6725a4c735b5dd2b3803e60b6bf02d682ca25
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('swin3d_s', 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}
}