All Projects → Hzzone → Pytorch Openpose

Hzzone / Pytorch Openpose

pytorch implementation of openpose including Hand and Body Pose Estimation.

Projects that are alternatives of or similar to Pytorch Openpose

Chinesetrafficpolicepose
Detects Chinese traffic police commanding poses 检测中国交警指挥手势
Stars: ✭ 49 (-93.16%)
Mutual labels:  jupyter-notebook, pose-estimation
Pose Interpreter Networks
Real-Time Object Pose Estimation with Pose Interpreter Networks (IROS 2018)
Stars: ✭ 104 (-85.47%)
Mutual labels:  jupyter-notebook, pose-estimation
Keras realtime multi Person pose estimation
Keras version of Realtime Multi-Person Pose Estimation project
Stars: ✭ 728 (+1.68%)
Mutual labels:  jupyter-notebook, pose-estimation
Cpm
Convolutional Pose Machines in TensorFlow
Stars: ✭ 115 (-83.94%)
Mutual labels:  jupyter-notebook, pose-estimation
Amass
Data preparation and loader for AMASS
Stars: ✭ 180 (-74.86%)
Mutual labels:  jupyter-notebook, pose-estimation
Epipolar Transformers
Epipolar Transformers (CVPR 2020)
Stars: ✭ 245 (-65.78%)
Mutual labels:  jupyter-notebook, pose-estimation
Pose Estimation tutorials
Tools and tutorials of pose estimation and deep learning
Stars: ✭ 79 (-88.97%)
Mutual labels:  jupyter-notebook, pose-estimation
Tensorflow realtime multi Person pose estimation
Multi-Person Pose Estimation project for Tensorflow 2.0 with a small and fast model based on MobilenetV3
Stars: ✭ 129 (-81.98%)
Mutual labels:  jupyter-notebook, pose-estimation
Rnn For Human Activity Recognition Using 2d Pose Input
Activity Recognition from 2D pose using an LSTM RNN
Stars: ✭ 165 (-76.96%)
Mutual labels:  jupyter-notebook, pose-estimation
Human body prior
VPoser: Variational Human Pose Prior
Stars: ✭ 244 (-65.92%)
Mutual labels:  jupyter-notebook, pose-estimation
Mobilepose Pytorch
Light-weight Single Person Pose Estimator
Stars: ✭ 427 (-40.36%)
Mutual labels:  jupyter-notebook, pose-estimation
Tforce btc trader
TensorForce Bitcoin Trading Bot
Stars: ✭ 717 (+0.14%)
Mutual labels:  jupyter-notebook
Tensorflow cookbook
Code for Tensorflow Machine Learning Cookbook
Stars: ✭ 5,984 (+735.75%)
Mutual labels:  jupyter-notebook
Industry Machine Learning
A curated list of applied machine learning and data science notebooks and libraries across different industries (by @firmai)
Stars: ✭ 6,077 (+748.74%)
Mutual labels:  jupyter-notebook
Pymc4
Experimental PyMC interface for TensorFlow Probability. Official work on this project has been discontinued.
Stars: ✭ 716 (+0%)
Mutual labels:  jupyter-notebook
Gpyopt
Gaussian Process Optimization using GPy
Stars: ✭ 716 (+0%)
Mutual labels:  jupyter-notebook
Carnd Lanelines P1
Lane Finding Project for Self-Driving Car ND
Stars: ✭ 717 (+0.14%)
Mutual labels:  jupyter-notebook
Aeropython
Classical Aerodynamics of potential flow using Python and Jupyter Notebooks
Stars: ✭ 714 (-0.28%)
Mutual labels:  jupyter-notebook
Neural Net With Financial Time Series Data
This solution presents an accessible, non-trivial example of machine learning (Deep learning) with financial time series using TensorFlow
Stars: ✭ 713 (-0.42%)
Mutual labels:  jupyter-notebook
Research
Notebooks based on financial machine learning.
Stars: ✭ 714 (-0.28%)
Mutual labels:  jupyter-notebook

pytorch-openpose

pytorch implementation of openpose including Body and Hand Pose Estimation, and the pytorch model is directly converted from openpose caffemodel by caffemodel2pytorch. You could implement face keypoint detection in the same way if you are interested in. Pay attention to that the face keypoint detector was trained using the procedure described in [Simon et al. 2017] for hands.

openpose detects hand by the result of body pose estimation, please refer to the code of handDetector.cpp. In the paper, it states as:

This is an important detail: to use the keypoint detector in any practical situation, 
we need a way to generate this bounding box. 
We directly use the body pose estimation models from [29] and [4], 
and use the wrist and elbow position to approximate the hand location, 
assuming the hand extends 0.15 times the length of the forearm in the same direction.

If anybody wants a pure python wrapper, please refer to my pytorch implementation of openpose, maybe it helps you to implement a standalone hand keypoint detector.

Don't be mean to star this repo if it helps your research.

Getting Started

Install Requriements

Create a python 3.7 environement, eg:

conda create -n pytorch-openpose python=3.7
conda activate pytorch-openpose

Install pytorch by following the quick start guide here (use pip) https://download.pytorch.org/whl/torch_stable.html

Install other requirements with pip

pip install -r requirements.txt

Download the Models

*.pth files are pytorch model, you could also download caffemodel file if you want to use caffe as backend.

Download the pytorch models and put them in a directory named model in the project root directory

Run the Demo

Run:

python demo_camera.py

to run a demo with a feed from your webcam or run

python demo.py

to use a image from the images folder or run

python demo_video.py <video-file>

to process a video file (requires ffmpeg-python).

Todo list

  • [x] convert caffemodel to pytorch.
  • [x] Body Pose Estimation.
  • [x] Hand Pose Estimation.
  • [ ] Performance test.
  • [ ] Speed up.

Demo

Skeleton

Body Pose Estimation

Hand Pose Estimation

Body + Hand

Video Body

Attribution: this video.

Video Hand

Attribution: this video.

Citation

Please cite these papers in your publications if it helps your research (the face keypoint detector was trained using the procedure described in [Simon et al. 2017] for hands):

@inproceedings{cao2017realtime,
  author = {Zhe Cao and Tomas Simon and Shih-En Wei and Yaser Sheikh},
  booktitle = {CVPR},
  title = {Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields},
  year = {2017}
}

@inproceedings{simon2017hand,
  author = {Tomas Simon and Hanbyul Joo and Iain Matthews and Yaser Sheikh},
  booktitle = {CVPR},
  title = {Hand Keypoint Detection in Single Images using Multiview Bootstrapping},
  year = {2017}
}

@inproceedings{wei2016cpm,
  author = {Shih-En Wei and Varun Ramakrishna and Takeo Kanade and Yaser Sheikh},
  booktitle = {CVPR},
  title = {Convolutional pose machines},
  year = {2016}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].