adipandas / torch_shnet

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:Python 87.0%Language:Jupyter Notebook 13.0%