GithubHelp home page GithubHelp logo

ankitshah009 / pose-hg-3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xingyizhou/pose-hg-3d

0.0 2.0 0.0 5.33 MB

Code repository for Towards 3D Human Pose Estimation in the Wild: a Weakly-supervised Approach

License: Other

Lua 77.62% Python 9.81% MATLAB 12.58%

pose-hg-3d's Introduction

Towards 3D Human Pose Estimation in the Wild: a Weakly-supervised Approach

This repository includes code for the network presented in:

Xingyi Zhou, Qixing Huang, Xiao Sun, Xiangyang Xue, Yichen Wei, Towards 3D Human Pose Estimation in the Wild: a Weakly-supervised Approach ICCV 2017 (arXiv:1704.02447)

The code is developed upon Stacked Hourglass Network.

[New] Checkout our PyTorch implementation.

Contact: [email protected]

Requirements

  • cudnn
  • Torch7 with hdf5 and image
  • Python with h5py and opencv

Testing

  • Download our pre-trained model and move it to models.
  • Run th demo.lua /path/to/image.

We provide example images in src/images/. For testing your own image, it is important that the person should be at the center of the image and most of the body parts should be within the image.

Training

  • Prepare the training data:

    • Download our pre-processed Human3.6M dataset here. The main part of the data pre-processing code is in src/Tools/h36mPreprocessing.m. We Converted Human3.6M dataset to .jpg files with 5x down-sampling.
    • Run python GetH36M.py in src/Tools/ to convert H36M annotations to hdf5 format.
    • Run python GetMPI-INF-3D.py in src/Tools/ to convert 3DHP annotations to hdf5 format. (or set valid3DHP in opt.lua false if you don't evaluate on this dataset)
  • Stage1: Train the 2D hourglass component

cd src
th main.lua -expID Stage1 -dataset fusion -task pose-hgreg-3d -netType hgreg-3d -varWeight 0.0 -regWeight 0.0  -nEpochs 60

Our results of this stage is provided here. Most of the experiments in the paper are based on this model.

  • Stage2: Train without Geometry loss (drop LR at 40 epochs)
th main.lua -expID Stage2 -dataset fusion -task pose-hgreg-3d -loadModel ../models/HGRegS2M2M2_60.t7 -varWeight 0.0 -regWeight 0.1 -dropLR 40 -nEpochs 50
  • Stage3: Train with Geometry loss
th main.lua -expID Stage3 -dataset fusion -task pose-hgreg-3d -loadModel ../exp/fusion/Stage2/model_50.t7 -varWeight 0.01 -regWeight 0.1 -LR 2.5e-5 -nEpochs 10`

Citation

@InProceedings{Zhou_2017_ICCV,
author = {Zhou, Xingyi and Huang, Qixing and Sun, Xiao and Xue, Xiangyang and Wei, Yichen},
title = {Towards 3D Human Pose Estimation in the Wild: A Weakly-Supervised Approach},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {Oct},
year = {2017}
}

pose-hg-3d's People

Contributors

xingyizhou avatar

Watchers

James Cloos 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.