an “action”, and action accuracy is the primary metric.
Moments in Time [45] consists of 800 000, 3-second
YouTube clips that capture the gist of a dynamic scene involving animals, objects, people, or natural phenomena.
Something-Something v2 (SSv2) [26] contains 220 000
videos, with durations ranging from 2 to 6 seconds. In contrast to the other datasets, the objects and backgrounds in
the videos are consistent across different action classes, and
this dataset thus places more emphasis on a model’s ability
to recognise ﬁne-grained motion cues.
Inference The input to our network is a video clip of 32
frames using a stride of 2, unless otherwise mentioned, similar to [21, 20]. Following common practice, at inference
time, we process multiple views of a longer video and aver-Table 2: Comparison of model architectures using ViViT-B as the
backbone, and tubelet size of 162. We report Top-1 accuracy on
Kinetics 400 (K400) and action accuracy on Epic Kitchens (EK).
Runtime is during inference on a TPU-v3.
K400 EKFLOPs
(109)Params
(106)Runtime
(ms)
We present pure-transformer based models for video classification, drawing
upon the recent success of such models in image classification. Our model
extracts spatio-temporal tokens from the input video, which are then encoded by
a series of transformer layers. In order to handle the long sequences of tokens
encountered in video, we propose several, efficient variants of our model which
factorise the spatial- and temporal-dimensions of the input. Although
transformer-based models are known to only be effective when large training
datasets are available, we show how we can effectively regularise the model
during training and leverage pretrained image models to be able to train on
comparatively small datasets. We conduct thorough ablation studies, and achieve
state-of-the-art results on multiple video classification benchmarks including
Kinetics 400 and 600, Epic Kitchens, Something-Something v2 and Moments in
Time, outperforming prior methods based on deep 3D convolutional networks. To
facilitate further research, we release code at
https://github.com/google-research/scenic/tree/main/scenic/projects/vivit
Anurag Arnab Mostafa Dehghani Georg Heigold Chen Sun Mario Lučić Cordelia Schmid