-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
484 additions
and
691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,64 @@ | ||
# 2s-AGCN | ||
Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition in CVPR19 | ||
|
||
# Data Preparation | ||
|
||
- Download the raw data from [NTU-RGB+D][https://github.com/shahroudy/NTURGB-D] and [Skeleton-Kinetics][https://github.com/yysijie/st-gcn]. Then put them under the data directory: | ||
|
||
-data\ | ||
-kinetics_raw\ | ||
-kinetics_train\ | ||
... | ||
-kinetics_val\ | ||
... | ||
-kinetics_train_label.json | ||
-keintics_val_label.json | ||
-nturgbd_raw\ | ||
-nturgb+d_skeletons\ | ||
... | ||
-samples_with_missing_skeletons.txt | ||
|
||
[https://github.com/shahroudy/NTURGB-D]: NTU-RGB+D | ||
[https://github.com/yysijie/st-gcn]: Skeleton-Kinetics | ||
|
||
- Preprocess the data with | ||
|
||
`python data_gen/ntu_gendata.py` | ||
|
||
`python data_gen/kinetics-gendata.py.` | ||
|
||
- Generate the bone data with: | ||
|
||
`python data_gen/gen_bone_data.py` | ||
|
||
# Training & Testing | ||
|
||
Change the config file depending on what you want. | ||
|
||
|
||
`python main.py --config ./config/nturgbd-cross-view/train_joint.yaml` | ||
|
||
`python main.py --config ./config/nturgbd-cross-view/train_bone.yaml` | ||
To ensemble the results of joints and bones, run test firstly to generate the scores of the softmax layer. | ||
|
||
`python main.py --config ./config/nturgbd-cross-view/test_joint.yaml` | ||
|
||
`python main.py --config ./config/nturgbd-cross-view/test_bone.yaml` | ||
|
||
Then combine the generated scores with: | ||
|
||
`python ensemble.py` --datasets ntu/xview | ||
# Citation | ||
Please cite the following paper if you use this repository in your reseach. | ||
|
||
@inproceedings{2sagcn2019cvpr, | ||
title = {Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition}, | ||
author = {Lei Shi and Yifan Zhang and Jian Cheng and Hanqing Lu}, | ||
booktitle = {CVPR}, | ||
year = {2019}, | ||
} | ||
|
||
# Contact | ||
For any questions, feel free to contact: `lei.shi@nlpr.ia.ac.cn` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters