Skip to content

Stacked Hourglass Network (shnet) for human pose estimation implemented in PyTorch

Notifications You must be signed in to change notification settings

adipandas/torch_shnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torch_shnet

Well documented Pytorch implementation of Stacked-Hourglass Network (shnet) for human pose estimation.

Installation

Install the requirements using the following commands in your Python Environment:

pip install PyYAML
pip install h5py
pip install numpy
pip install opencv-contrib-python
pip install imageio 
pip3 install torch torchvision torchaudio
pip install pytorch-lightning

MPII dataset

Refer this for downloading MPII dataset.

Training

Recommended to use multi-gpu training. I haven't tested train.py which is using DistributedDataParallel.

(For single GPU, reduce the batch_size in config.yaml to 4. But this may lead to convergence issues.)

To start training: python train_pl.py

References:

  1. Newell, Alejandro, Kaiyu Yang, and Jia Deng. "Stacked hourglass networks for human pose estimation." European conference on computer vision. Springer, Cham, 2016. [arxiv]
  2. Stacked Hourglass Network model implementation was adopted from Chris Rockwell's implementation available in this GitHub repository.