Video Vision Transformer implementation in pytorch
Original Video Vision Transformer paper presents 4 different ViViT architectures. This repository implements only the Model2: Factorised Encoder
Original Video Vision Transformer also uses two types of embedding. Uniform and Tubelet.
This implementation provides option to use both types of embedding. For uniform embedding use tubelet_size: 1, use_vit: True for Conv2d implementation and use_vit: False for Conv3d implementation. See configs/example_config.yaml for details.
git clone https://github.com/zeleznyt/ViViT.git
cd ViViT
conda create --name vivit python=3.10
conda activate vivit
pip install -r requirements.txt
Example data are located in example_data_RAVDAI repository.
git clone https://github.com/zeleznyt/example_data_RAVDAI.git
cd ViViT
conda activate vivit
python train_vivit.py --config configs/example_config.yaml
cd ViViT
conda activate vivit
python evaluate_vivit.py --config configs/example_config.yaml
Citation of original ViViT paper.
@inproceedings{arnab2021vivit,
title={Vivit: A video vision transformer},
author={Arnab, Anurag and Dehghani, Mostafa and Heigold, Georg and Sun, Chen and Lu{\v{c}}i{\'c}, Mario and Schmid, Cordelia},
booktitle={Proceedings of the IEEE/CVF international conference on computer vision},
pages={6836--6846},
year={2021}
}
This implementation was inspired by @rishikksh20 repository.


