Khoronus / 3dpose_gan_pytorch

Pytorch implementation of Unsupervised Adversarial Learning of 3D Human Pose from 2D Joint Locations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3dpose_gan_pytorch

Pytorch implementation of Unsupervised Adversarial Learning of 3D Human Pose from 2D Joint Locations

Unsupervised Adversarial Learning of 3D Human Pose from 2D Joint Locations

This is a modified version of the project Unsupervised Adversarial Learning of 3D Human Pose from 2D Joint Locations

The Chainer code has been substituted with an equivalent version of the PyTorch code. NOTE: I was unable to compare the results with Chainer implementation due to HW/SW issues.

Run Inference for demo (with openpose)

  1. Download openpose pretrained model
  2. Run Inference
    • python bin/demo.py sample/image.png --lift_model sample/gen_epoch_500.npz --model2d pose_iter_440000.caffemodel --proto2d openpose_pose_coco.prototxt
    • Need OpenCV >= 3.4
      • < 3.3 results extreamly wrong estimation

Dependencies(Recommended versions)

Training

Human3.6M dataset

  • Unsupervised learning of 3D points from ground truth 2D points

    python bin/train.py --gpu 0 --mode unsupervised --dataset h36m --use_heuristic_loss
    or
    python bin/train.py --gpu 0 --mode unsupervised --dataset h36m --use_heuristic_loss --use_bn
    
    
  • Unsupervised learning of 3D points from detected 2D points by Stacked Hourglass

    TBA

  • Supervised learning of 3D points from ground truth 2D points

    python bin/train.py --gpu 0 --mode supervised --activate_func relu --use_bn
    

MPII dataset

TBA

MPI-INF-3DHP dataset

TBA

Evaluation

python bin/eval.py results/hoge/gen_epoch_*.npz

python bin/eval.py

python bin/eval.py --gpu 0 --mode unsupervised --activate_func relu --use_bn -d COCO (error with --use_bn when not trained with bn)

About

Pytorch implementation of Unsupervised Adversarial Learning of 3D Human Pose from 2D Joint Locations

License:MIT License


Languages

Language:Python 100.0%