alievk / hmr

Project page for End-to-end Recovery of Human Shape and Pose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

End-to-end Recovery of Human Shape and Pose

Angjoo Kanazawa, Michael J. Black, David W. Jacobs, Jitendra Malik CVPR 2018

Project Page Teaser Image



Setup virtualenv

virtualenv venv_hmr
source venv_hmr/bin/activate
pip install -U pip
source venv_hmr/bin/activate
pip install -r requirements.txt

Install TensorFlow

With GPU:

pip install tensorflow-gpu==1.3.0

Without GPU:

pip install tensorflow==1.3.0


  1. Download the pre-trained models
wget && tar -xf models.tar.gz
  1. Run the demo
python -m demo --img_path data/coco1.png
python -m demo --img_path data/im1954.jpg

Images should be tightly cropped, where the height of the person is roughly 150px. On images that are not tightly cropped, you can run openpose and supply its output json (run it with --write_json option). When json_path is specified, the demo will compute the right scale and bbox center to run HMR:

python -m demo --img_path data/random.jpg --json_path data/random_keypoints.json

(The demo only runs on the most confident bounding box, see src/util/

Training code/data

Please see the doc/!


If you use this code for your research, please consider citing:

  title={End-to-end Recovery of Human Shape and Pose},
  author = {Angjoo Kanazawa
  and Michael J. Black
  and David W. Jacobs
  and Jitendra Malik},
  booktitle={Computer Vision and Pattern Regognition (CVPR)},


Project page for End-to-end Recovery of Human Shape and Pose



Language:Python 97.7%Language:Shell 2.2%Language:Dockerfile 0.2%