# Video classification with Transformers

**URL:** <https://discuss.ai.google.dev/t/video-classification-with-transformers/28418>\
**Category:** Show and Tell\
**Tags:** education, learning, keras\
**Created:** [June 16, 2021, 1:42am UTC](https://discuss.ai.google.dev/t/video-classification-with-transformers/28418 "2021-06-16T01:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sayak\_Paul](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/sayak_paul/32/13002_2.png) [@Sayak\_Paul](https://discuss.ai.google.dev/u/Sayak_Paul)\
**Post date:** [June 16, 2021, 1:42am UTC](https://discuss.ai.google.dev/t/video-classification-with-transformers/28418/1 "2021-06-16T01:42:13Z")

</div>

Hi folks,

My latest Keras example showing how to build a video classifier by using a hybrid Transformer model. First, we process the video frames using a pre-trained CNN and then we use a Transformer-based model to operate on the CNN feature maps for modeling the temporal relationships.

> **[Keras documentation: Video Classification with Transformers](https://keras.io/examples/vision/video_transformers/)**
>
> Keras documentation

Here’s what you can expect to get as the results (above are the predictions and below is a GIF of the input video):

 ![image](https://d3qe71uytubmmx.cloudfront.net/original/2X/1/1efdaf7277918bc881fe43fd9ad2c0f60105ee8b.png)

![download](https://d3qe71uytubmmx.cloudfront.net/original/2X/4/48d9355fc6a8cb99599db3e3c899f9535969c831.gif)

P.S.: I am a Cricket fanatic. Sachin Tendulkar is my favorite batsman and Shane Warne is my favorite bowler. 😄
