Masked Autoencoders As Spatiotemporal Learners

August 4, 2022 ยท View on GitHub

Christoph Feichtenhofer*, Haoqi Fan*, Yanghao Li, Kaiming He
Technical report, arXiv, May 2022. [Paper]


Results & Models

Kinetics-400; configs are under configs/masked_ssl/

nameframe length x sample ratetop1Flops (G) x views#params (M)config pre-train (PT)config fine-tunemodel PT
ViT-B16 x 481.3180 x 3 x 787k400_VIT_B_16x4_MAE_PTk400_VIT_B_16x4_FTlink
ViT-L16 x 484.8598 x 3 x 7304k400_VIT_L_16x4_MAE_PTk400_VIT_L_16x4_FTlink
ViT-H16 x 485.11193 x 3 x 7632k400_VIT_H_16x4_MAE_PTk400_VIT_H_16x4_FTlink

Getting started

To use self-supervised learning techniques please refer to the configs under configs/masked_ssl. For example, the command

python tools/run_net.py \
  --cfg configs/masked_ssl/k400_VIT_L_16x4_MAE_PT.yaml \
  DATA.PATH_TO_DATA_DIR path_to_your_Kinetics_dataset

should train an MAE ViT-L model on the Kinetics-400 dataset, and the command

python tools/run_net.py \
  --cfg configs/masked_ssl/k400_VIT_L_16x4_FT.yaml \
  DATA.PATH_TO_DATA_DIR path_to_your_Kinetics_dataset \
  TRAIN.CHECKPOINT_FILE_PATH path_to_your_pretrain_checkpoint

will fine-tune the resulting model, after passing the checkpoint path to the config.

Reference

If you find this useful for your research, please consider citing the paper using the following BibTeX entry.

@article{feichtenhofer2022masked,
  title={Masked Autoencoders As Spatiotemporal Learners},
  author={Feichtenhofer, Christoph and Fan, Haoqi and Li, Yanghao and He, Kaiming},
  journal={arXiv preprint arXiv:2205.09113},
  year={2022}
}