Skip to content

lshiwjx/AdaSGN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdaSGN

AdaSGN: Adapting Joint Number and Model Size for Efficient Skeleton-Based Action Recognition

Note

pytorch>=1.6

Data Preparation

Under the "code" forder:

Training & Testing

Using NTU-60-CV as an example:

  • First, pre-train the single-models by: python train.py --config ./config/ntu60/ntu60_singlesgn.yaml Modify the "gcn_type" and the "num_joint" of the config file to obtain different single-models.

  • Second, modify the single model paths ("pre_trains" option) in the config file and train the AdaSGN by:

    python train.py --config ./config/ntu60/ntu60_ada_pre.yaml

  • Repeat the above two steps to train the bone modality and the velocity modality. In detail, set "decouple_spatial" to True for the bone modality and set "num_skip_frame" to 1 for the velocity modality. Then combine the generated scores with:

    python ensemble.py --label label_path --joint joint_score_path --bone bone_score_path --vel velocity_score_path

Citation

Please cite the following paper if you use this repository in your research.

@inproceedings{adasgn2021iccv,  
      title     = {AdaSGN: Adapting Joint Number and Model Size for Efficient Skeleton-Based Action Recognition},  
      author    = {Lei Shi and Yifan Zhang and Jian Cheng and Hanqing Lu},  
      booktitle = {ICCV},  
      year      = {2021},  
}

Contact

For any questions, feel free to contact: lei.shi@nlpr.ia.ac.cn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published