Streamformer - Action Recognition

August 11, 2025 ยท View on GitHub

This is the repo for finetuning Streamformer on the action recognition task. The code is modified from UMT and VideoMAE

Installation

We recomend to install DeepSpeed by simply running pip install deepspeed.

Datasets

  1. Download Kinetics 400 and Something-Something V2. The videos we used are downloaded from OpenDataLab.

  2. Prepare the annotation files. We provide the annotations HERE.

Training

Notes before training:

  1. Chage DATA_PATH And PREFIX to your data path before running the scripts.
  2. Chage MODEL_PATH and PRETRAINED_CKPT to your model path.
  3. Set --test_num_segment and --test_num_crop for different evaluation strategies.

For training on K400 on 8GPUs, you can simply run

./exp/k400/streamformer_multitask_f16_res224.sh

On SSv2, you can simply run

./exp/ssv2/streamformer_multitask_lora_f16_res224.sh

Main Results and checkpoints

K400

methodTop-1 Acc (%)Top-5 Acc(%)checkpoint
Streamformer82.495.5Download

SSv2

methodTop-1 Acc (%)Top-5 Acc(%)checkpoint
Streamformer66.390.1Download

Acknowledgements

This codebase is built uponUMT and VideoMAE. Thanks for their great work.