Video Swin Transformer

Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang +2 more
6/24/2021
cs.CVcs.AIcs.LG

Official code: SwinTransformer/Video-Swin-Transformer (1,667 stars, Apache-2.0, last commit 2023-03-08).

Abstract

The vision community is witnessing a modeling shift from CNNs to Transformers, where pure Transformer architectures have attained top accuracy on the major video recognition benchmarks. These video models are all built on Transformer layers that globally connect patches across the spatial and temporal dimensions. In this paper, we instead advocate an inductive bias of locality in video Transformers, which leads to a better speed-accuracy trade-off compared to previous approaches which compute self-attention globally even with spatial-temporal factorization. The locality of the proposed video architecture is realized by adapting the Swin Transformer designed for the image domain, while continuing to leverage the power of pre-trained image models. Our approach achieves state-of-the-art accuracy on a broad range of video recognition benchmarks, including on action recognition (84.9 top-1 accuracy on Kinetics-400 and 86.1 top-1 accuracy on Kinetics-600 with ~20x less pre-training data and ~3x smaller model size) and temporal modeling (69.6 top-1 accuracy on Something-Something v2). The code and models will be made publicly available at https://github.com/SwinTransformer/Video-Swin-Transformer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is an official implementation for "Video Swin Transformers".

1,667215Shell, PythonJun 24, 20213 years agoApache-2.0
swin-transformervideo-recognition

Similar Papers

Cite this paper

@article{liu2021video,
  title  = {Video Swin Transformer},
  author = {Ze Liu and Jia Ning and Yue Cao and Yixuan Wei and Zheng Zhang and Stephen Lin and Han Hu},
  year   = {2021},
  eprint = {2106.13230},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.13230}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.13230.svg)](https://codeofpaper.com/paper/2106.13230)

Discussion