• Stars
    star
    272
  • Rank 150,356 (Top 3 %)
  • Language
    Python
  • Created almost 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Implement of Openpose use Tensorflow

Unofficial-Implement-of-Openpose

γ€€γ€€

You can check the full result on YouTube or bilibiliγ€€γ€€

An easy implement of openpose using TensorFlow.

Only basic python is used, so the code is easy to understand.

You can check the graph, internal outputs of every stage and histogram of every layer in tensorboard.

Original Repo(Caffe) : https://github.com/CMU-Perceptual-Computing-Lab/openpose.

The Dataloader and Post-processing code is from tf-pose-estimation.

Python 3.6γ€€γ€€

γ€€

Training

  1. Download vgg19 weights file here or ι“ΎζŽ₯: https://pan.baidu.com/s/1t6iouKeDZBZRRg4BXsv5GA 提取码: 4k1w and uzip to 'checkpoints/vgg/' (please create the path yourself).

  2. Download COCO2017: 2017 Train images, 2017 Val images and 2017 Train/Val annotations here.
    make sure have this structure:
    -COCO/
    γ€€-images/
    γ€€γ€€-train2017/
    γ€€γ€€-val2017/
    γ€€-annotations/

  3. Specify '--annot_path_train' and '--img_path_train' in train.py to your own 'COCO/annotations/' and 'COCO/images/'.

  4. run train.py python train.py and install requirements follow the error and run again.

γ€€γ€€ γ€€

Test

Specify --checkpoint_path to the folder includes checkpoint files in run.py.γ€€γ€€

  • running on webcam python run.pyγ€€γ€€
  • running on video python run.py --video images/video.aviγ€€γ€€
  • running on imagepython run.py --image images/ski.jpgγ€€γ€€

pretrained model on COCO 2017 is available here or ι“ΎζŽ₯: https://pan.baidu.com/s/1jcwRsOuEaveZRBU50lP_cQ 提取码: mqkr, this checkpoint includes fine-tuned vgg weights.γ€€γ€€