Coder Social home page Coder Social logo

bruinxiong / wat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wei-mao-2019/wat

0.0 0.0 0.0 46.09 MB

code for cvpr2022 paper "Weakly-supervised Action Transition Learning for Stochastic Human Motion Prediction"

License: MIT License

Shell 0.48% Python 99.52%

wat's Introduction

Weakly-supervised Action Transition Learning for Stochastic Human Motion Prediction

Loading WAT Overview

This is official implementation for the paper

Weakly-supervised Action Transition Learning for Stochastic Human Motion Prediction. In CVPR 22.

Wei Mao, Miaomiao Liu, Mathieu Salzmann.

[paper] [talk]

Dependencies

  • Python >= 3.8
  • PyTorch >= 1.8
  • Tensorboard
  • numba

tested on pytorch == 1.8.1

Datasets

GRAB dataset

The original dataset is from here.

BABEL dataset

The original dataset is from here.

NTU13 and HumanAct12

We use the preprocessed version from Action2Motion.

Note that, we processed all the dataset to discard sequences that are too short or too long. The processed datasets can be downloaded from GoogleDrive. Download all the files to ./data folder.

Training and Evaluation

  • We provide YAML configs inside motion_pred/cfg: [dataset]_rnn.yml and [dataset]_act_classifier.yml for the main model and the classifier (for evaluation) respectively. These configs correspond to pretrained models inside results.
  • The training and evaluation command is included in run.sh file.

Visualization

Download smpl-(h,x) models from their official websites and put them in ./SMPL_models folder. The data structure should looks like this

SMPL_models
    ├── smpl
    │   ├── SMPL_FEMALE.pkl
    │   └── SMPL_MALE.pkl
    │
    ├── smplh
    │    ├── MANO_LEFT.pkl
    │    ├── MANO_RIGHT.pkl
    │    ├── SMPLH_FEMALE.pkl
    │    └── SMPLH_MALE.pkl
    │
    └── smplx
        │
        ├── SMPLX_FEMALE.pkl
        └── SMPLX_MALE.pkl

You can then run the following code to render the results of your model to a video.

    python eval_vae_act_render_video.py --cfg grab_rnn --cfg_classifier grab_act_classifier

Note that when visualizing the results of BABEL dataset, there may be an error due to the reason that SMPLH_(FE)MALE.pkl does not contain the hand components. In this case, you may need to manually load the hand components from MANO_LEFT(RIGHT).pkl.

Citing

If you use our code, please cite our work

@inproceedings{mao2022weakly,
  title={Weakly-supervised Action Transition Learning for Stochastic Human Motion Prediction},
  author={Mao, Wei and Liu, Miaomiao and Salzmann, Mathieu},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={8151--8160},
  year={2022}
}

Acknowledgments

The overall code framework (dataloading, training, testing etc.) is adapted from DLow.

Licence

MIT

wat's People

Contributors

wei-mao-2019 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.