DECOMPL: Decompositional Learning with Attention Pooling for Group Activity Recognition from a Single Volleyball Image
This is an official implementation of DECOMPL: Decompositional Learning with Attention Pooling for Group Activity Recognition from a Single Volleyball Image. In this repository, we provide PyTorch code for training and testing as described in the paper.
- Download VD from following link: Volleyball dataset.
- Unzip the dataset (~60 GB) file into a directory named
data
and set its name tovolleyball_videos
- Download the file
tracks_normalized.pkl
from cvlab-epfl/social-scene-understanding and put it into the directorydata
- Finally, place DECOMPL and our reannotations on the same directory
-
Conda (Recommended):
conda create -n DECOMPL conda activate DECOMPL
-
Pip
pip install -r requirements.txt
-
Training and Validation: Modify
test_only
argument in/scripts/run_model_volleyball.py
to train or validate. To use the pretrained weights setload_path
tocheckpoint_weights_volleyball_half.pth
cd PROJECT_PATH python scripts/run_model.py
-
Additionally, Training and Validation for Collective Activity Dataset: Follow the same instructions as for the Volleyball Dataset on the scripts
/scripts/run_model_collective.py
and pretrained weightscheckpoint_weights_collective_half.pth
Note: The weights provided are converted to half precision due to size constraints.
@article{demirel2023decompl,
title={DECOMPL: Decompositional Learning with Attention Pooling for Group Activity Recognition from a Single Volleyball Image},
author={Demirel, Berker and Ozkan, Huseyin},
journal={arXiv preprint arXiv:2303.06439},
year={2023}
}