AEI: Actors-Environment Interaction with Adaptive Attention for Temporal Action Proposals Generation
A pytorch-version implementation codes of paper: "AEI: Actors-Environment Interaction with Adaptive Attention for Temporal Action Proposals Generation", which is accepted in BMVC 2021.
Installation Guide
- conda create -n aei python=3.8
- conda activate aei
- conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
- pip install tqdm pandas tensorboard matplotlib fvcore scipy
- cd into tapg-aei (root)
- git clone https://github.com/frostinassiky/align1d
- cd into tapg-aei/align1d
- pip install -e .
- cd ..
Download Features
3D Resnet-50 features extracted from rescaled videos of ActivityNet-1.3 can be downloaded below:
- Environment features are here (~80GB uncompressed).
- Actor features are here (~215GB uncompressed).
- Annotations of Activitynet-1.3 can be downloaded from the official website.
Training and Testing of AEI
Default configurations of AEI are stored in config/defaults.py. The modified configurations are stored in config/*.yaml for training and testing of AEI on different datasets (ActivityNet-1.3 and THUMOS-14). We can also modify configurations through commandline arguments.
- To train AEI on TAPG task of ActivityNet-1.3 with 1 GPU:
python main.py --cfg-file config/anet_proposals.yaml MODE 'training' GPU_IDS [0]
- To evaluate AEI on validation set of ActivityNet-1.3 with 1 GPU:
python main.py --cfg-file config/anet_proposals.yaml MODE 'validation' GPU_IDS [0]
Reference
This implementation is partly based on this pytorch-implementation of BMN for the boundary matching module.
paper: AEI: Actors-Environment Interaction with Adaptive Attention for Temporal Action Proposals Generation
Q&A
1q. "UserWarning: This DataLoader will create 12 worker processes in total. Our suggested max number of worker in current system is #, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary."
1a. Change num_workers to # in line 171 of root>main.py>inference function
Citation
If you find AEI useful for your research, please consider citing:
@article{khoavoAEI2021,
author = {Khoa Vo and
Hyekang Joo and
Kashu Yamazaki and
Sang Truong and
Kris Kitani and
Minh{-}Triet Tran and
Ngan Le},
title = {{AEI:} Actors-Environment Interaction with Adaptive Attention for
Temporal Action Proposals Generation},
journal = {CoRR},
volume = {abs/2110.11474},
year = {2021},
url = {https://arxiv.org/abs/2110.11474},
eprinttype = {arXiv},
eprint = {2110.11474},
}
Contact
Khoa Vo: