facebookresearch/mae_st

Official Open Source code for "Masked Autoencoders As Spatiotemporal Learners"

What it solves

This project provides a PyTorch implementation of Masked Autoencoders (MAE) adapted for spatiotemporal learning, allowing models to learn powerful video representations by reconstructing missing parts of a video sequence.

How it works

The system uses a masking strategy where a large portion of the video (up to 98% in demos) is masked out. The model is then tasked with reconstructing the original video frames, forcing it to learn the spatial and temporal relationships between frames to fill in the gaps.

Who it’s for

This is intended for researchers and developers working on video understanding, self-supervised learning, and computer vision tasks that require pre-trained spatiotemporal models.

Highlights

  • Pre-trained checkpoints for ViT-Large and ViT-Huge architectures on Kinetics-400, 600, and 700 datasets.
  • Support for both pre-training and fine-tuning workflows.
  • Interactive visualization demo to see the model's reconstruction capabilities.
  • Built on top of the PyTorch and timm library.

Related

  • Project
  • Project
  • Project
  • Project
  • Project