video contains 250 frames (10 seconds sampled at 25 fps) and the
accuracy for each model saturates once the number of equidistant
temporal views is sufﬁcient to “see” the whole video clip. Observe how models processing more frames (and thus more tokens)
achieve higher single- and multi-view accuracy.
Figure 9 shows that as we increase the number of frames
input to the network, the accuracy from processing a single view increases, since the network incorporates longer
temporal context. However, common practice on datasets
such as Kinetics [21, 75, 42] is to average results over multiple, shorter “views” of the same video clip. Figure 9 also
shows that the accuracy saturates once the number of views
is sufﬁcient to cover the whole video. As a Kinetics video
consists of 250 frames, and we sample frames with a stride
of 2, our model which processes 128 frames requires just a
single view to “see” the whole video and achieve its maximum accuarcy.
Note that we used ViViT-L/16x2 Factorised Encoder
(Model 2) here. As this model is more efﬁcient it can process more tokens, compared to the unfactorised Model 1
which runs out of memory after 48 frames using tubelet
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