Skip to content

Deep Learning based Human Pose Estimation on the edge.

License

Notifications You must be signed in to change notification settings

BrunoMelicio/Deep_Rehab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepRehab

This is a Keras implementation of a modified version of PersonLab called DeepRehab for Multi-Person Pose Estimation. The model predicts heatmaps and offsets which allow for computation of 23 joints also known as keypoints, 17 for face and body, and 6 for feet. See the paper for more details. Our implementation can run at high speed on the Edge using Edge TPU devices.

Requirements

  • Linux Ubuntu 16.0 or higher
  • Python 2.7
  • CUDA 8.0 with cudNN 6.0 or higher
  • Conda

Quick Start

  • Run 'conda env create -f environment.yml'.
  • Run 'conda activate gitfposenet2'
  • Download the model and put it inside the /src/models/ folder.
  • Run 'python demo.py' to run the demo and visualize the results inside /src/demo_results/ or run 'python demo_video.py' to demo on a video.

Result

Pose

pose

Advanced

If you want to train the model:

If you want to experiment with the filtering methods, please use 'python /src/experiments/filtering_experiments.py'

If you want to run the model on an Edge TPU device, follow these steps:

  • Export the frozen graph of the deeprehab_101.h5 model using the jupyter notebook freezeGraph.ipynb . It may require creating a new conda environment with Tensorflow 1.9.
  • Convert the exported frozen graph to a tflite model using the jupyter notebook convertToTFLITE.ipynb . It requires to create a new conda environment using Tensorflow nightly 3.5.
  • Install the edgetpu compiler following: https://coral.ai/docs/edgetpu/compiler/ .
  • Run the command 'edgetpu_compiler [options] model...' , using your own options and the name of the tflite model.

Technical Debts

Several parts of this codebase are borrowed from PersonLab Keras

Citation

@inproceedings{papandreou2018personlab,
  title={PersonLab: Person pose estimation and instance segmentation with a bottom-up, part-based, geometric embedding model},
  author={Papandreou, George and Zhu, Tyler and Chen, Liang-Chieh and Gidaris, Spyros and Tompson, Jonathan and Murphy, Kevin},
  booktitle={Proceedings of the European Conference on Computer Vision (ECCV)},
  pages={269--286},
  year={2018}
}

About

Deep Learning based Human Pose Estimation on the edge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published