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
-
Download Kinetics 400 and Something-Something V2. The videos we used are downloaded from OpenDataLab.
-
Prepare the annotation files. We provide the annotations HERE.
Training
Notes before training:
- Chage
DATA_PATHAndPREFIXto your data path before running the scripts. - Chage
MODEL_PATHandPRETRAINED_CKPTto your model path. - Set
--test_num_segmentand--test_num_cropfor 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
| method | Top-1 Acc (%) | Top-5 Acc(%) | checkpoint |
|---|---|---|---|
| Streamformer | 82.4 | 95.5 | Download |
SSv2
| method | Top-1 Acc (%) | Top-5 Acc(%) | checkpoint |
|---|---|---|---|
| Streamformer | 66.3 | 90.1 | Download |
Acknowledgements
This codebase is built uponUMT and VideoMAE. Thanks for their great work.