Skip to content

Lenazhou/interaction-recognition

Repository files navigation

HIR

This repo is the offical implementation for "Human Interaction Recognition with Skeletal Attention and Shift Graph Convolution". The paper is accepted to IJCNN2022. Note: We also provide a simple model, which achieves 100%, 90.63% on UT and BIT-Interaction , respectively.

Prerequisite

  • PyTorch 1.5.0
  • Cuda 10.2
  • gcc 5.5.0

Data Preparation

  • Download the raw data of UT and BIT-Interaction.
  • Download the raw data for Campus-Interaction (CI) here: Baidu,code:smd3.
  • Use AlphaPose to obtain skeletons and skeleton bboxes.
  • Use enter link description here to obtain tracking bboxes.
  • Combine skeleton bboxes and tracking bboxes with python python compute_bbox.py
  • Data preprocessing files to ./data/dataset_name. One example can be downloaded here.

Trianing & Testing

  • For UT

python appearance_train.py --train True --dataset ut --config ./config/ci/default-a.yaml

python appearance_train.py --train False --dataset ut --config ./config/ci/default-a.yaml

python pose_train.py --dataset ut --config ./config/ut/default-p.yaml

python pose_train.py --phase test --dataset ut --config ./config/ci/default-a.yaml

  • For BIT

python appearance_train.py --train True --dataset bit --config ./config/bit/default-a.yaml

python appearance_train.py --train False --dataset bit --config ./config/bit/default-a.yaml

python pose_train.py --dataset bit --config ./config/bit/default-p.yaml

python pose_train.py --phase test --dataset bit --config ./config/bit/default-a.yaml

  • For CI

python appearance_train.py --train True --dataset ci --config ./config/ci/default-a.yaml

python appearance_train.py --train False --dataset ci --config ./config/ci/default-a.yaml

python pose_train.py --dataset ci --config ./config/ci/default-p.yaml

python pose_train.py --phase test --dataset ci --config ./config/ci/default-a.yaml

Two-stream ensemble

To ensemble the results of two stream. Run python ensemble.py

Citation

@inproceedings{Jin2022hir,
    title = {Human Interaction Recognition with Skeletal Attention and Shift Graph Convolution},
    author = {Jin Zhou and Zhenhua Wang and Jiajun Meng and Shen Liu and Jianhua Zhang and Shengyong chen},
    booktitle = {2021 International Joint Conference on Neural Networks (IJCNN)},
    year = {2022}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages