Giter VIP home page Giter VIP logo

lightcar's Introduction

AdaSGN

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

Note

pytorch==1.6

Data Preparation

Under the "code" forder:

  • NTU-60
    • Download the NTU-60 data from the https://github.com/shahroudy/NTURGB-D to ../data/raw/ntu60
    • Process the raw data sequentially with python prepare/ntu60/get_raw_skes_data.py, python prepare/ntu60/get_raw_denoised_data.py and python prepare/ntu60/seq_transformation.py
  • NTU-120
    • Download the NTU-120 data from the https://github.com/shahroudy/NTURGB-D to ../data/raw/ntu120
    • Process the raw data sequentially with python prepare/ntu120/get_raw_skes_data.py, python prepare/ntu120/get_raw_denoised_data.py and python prepare/ntu120/seq_transformation.py
  • SHREC

Training & Testing

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 vel_score_path`

Citation

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

@inproceedings{adasgn2021arxiv,  
      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 = {ArXiv:2103.11770 [cs.CV]},  
      year      = {2021},  
}

Contact

For any questions, feel free to contact: [email protected]

lightcar's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.