This Repository contains the code on AVA of our ACM MM 2021 paper: LSTC: Boosting Atomic Action Detection with Long-Short-Term Context
See INSTALL.md for details on installing the codebase, including requirement and environment settings
For data preparation and setup, our LSTC strictly follows the processing of PySlowFast, See DATASET.md for details on preparing the data.
We take SlowFast-ResNet50 as an example
- train the model
python3 tools/run_net.py --cfg config/AVA/SLOWFAST_32x12_R50_LFB.yaml \
AVA.FEATURE_BANK_PATH 'path/to/feature/bank/folder' \
TRAIN.CHECKPOINT_FILE_PATH 'path/to/pretrained/backbone' \
OUTPUT_DIR 'path/to/output/folder'
- test the model
python3 tools/run_net.py --cfg config/AVA/SLOWFAST_32x12_R50_LFB.yaml \
AVA.FEATURE_BANK_PATH 'path/to/feature/bank/folder' \
OUTPUT_DIR 'path/to/output/folder' \
TRAIN.ENABLE False \
TEST.ENABLE True
If you want to start the DDP training from command line with torch.distributed.launch
, please set start_method='cmd'
in tools/run_net.py
The codebase provide following resources for fast training and validation
backbone | dataset | model type | link |
---|---|---|---|
ResNet50 | Kinetics400 | Caffe2 | Google Drive/Baidu Disk (Code: y1wl) |
ResNet101 | Kinetics600 | Caffe2 | Google Drive/Baidu Disk (Code: slde) |
backbone | feature bank (LMDB) | dimension |
---|---|---|
ResNet50 | Google Drive | 1280 |
ResNet101 | Google Drive | 2304 |
backbone | checkpoint | model type |
---|---|---|
ResNet50 | Google Drive/Baidu Disk (Code: fi0s) | pytorch |
ResNet101 | Google Drive/Baidu Disk (Code: g63o) | pytorch |
This codebase is built upon PySlowFast.
If you find this repository helps your research, please refer following paper
@InProceedings{Yuxi_2021_ACM,
author = {Li, Yuxi and Zhang, Boshen and Li, Jian and Wang, Yabiao and Wang, Chengjie and Li, Jilin and Huang, Feiyue and Lin, Weiyao},
title = {LSTC: Boosting Atomic Action Detection with Long-Short-Term Context},
booktitle = {ACM Conference on Multimedia},
month = {October},
year = {2021}
}