Code Monkey home page Code Monkey logo

cpm_pytorch's Introduction

Convolutional Pose Machines

This is the Pytorch

There are 7 files in this folder

--handpose_data_cpm.py
data loader for Hand Pose dataset

--handpose_no_label.py
data loader for Hand Pose dataset without ground truth

--cpm.py
Pytorch cpm model

--train.py
--test.py --save.py
--predict.py
--conf.text

usage

1 train model

python cpm_train.py   

You may revise the variable in conf.text

train_data_dir =
train_label_dir =
learning_rate = 8e-6
batch_size = 16
epochs = 50
begin_epoch = 0

Thus change the path to your own datasets and train CPM on your own REMEMBER that you may implement new data loader for you own datasets.

After this, you will get models for several epoches. The models are saved in folder ckpt/ like

ckpt/model_epoch10.pth

2 test model

python cpm_Test.py         

After running this, you will get PCK score for each epoch
You can select the best trained models

3 save prediction results

python cpm_save.py    

After step 2, you will know which is the best epoch, thus you should revise conf.text and change the value of best_model

4 apply models on datasets without ground truth

python cpm_predict.py    

This step is for applying trained model on datasets without ground truth

cpm_pytorch's People

Contributors

howiema avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cpm_pytorch's Issues

Can you publish PCK?

I don't know how well you tested the CMU dataset. After training, I found that the estimated gesture is not in the position of the hand at all. I don't know how to deal with it? Can you publish PCK?

For dataloader

Hi,thanks your code in the project data_loader/cmu_hand_data.py , in the 142 cloumn ,the var 'background' isn't add to label_maps

why? it isn't useful?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.