GithubHelp home page GithubHelp logo

f18298335152h / convolutional-pose-machines-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from namedben/convolutional-pose-machines-pytorch

0.0 1.0 0.0 1.21 MB

Pytroch version of Convolutional Pose Machines

Python 99.06% Shell 0.94%

convolutional-pose-machines-pytorch's Introduction

Convolutional-Pose-Machines-Pytorch

This is a pytroch version of Convolutional Pose Machines, you can find more details in the original paper Convolutional Pose Machines

Results

a

b

c

y

The result is generated by the model, which has trained 100 epoches.

Requirements

  • Python 2.7
  • PyTorch 0.3.0
  • torchvision 0.2.0
  • OpenCv > 2.4.9

The data set

  • Download the data set for training LSPet
  • (Alternative) Download the data set for validation LSP
  • When you want to train some other datasets, please change the code to correspond to your datasets.

Usage

Train

  • Set the train parameters in " config/config.yml ".
  • Go to the "train_val" folder cd train_val.
  • with val

python cpm_train.py --gpu 0 1 --train_dir ../dataset/train/lspet_dataset --val_dir ../dataset/val/lsp_dataset --config ../config/config.yml
  • without val

python cpm_train.py --gpu 0 1 --train_dir ../dataset/train/lspet_dataset --config ../config/config.yml
  • You can also train the model like
sudo sh cpm_train.sh

Test

  • Go to the "test" folder cd test.
python cpm_test.py

Pre-trained model

Notice

  • The code of test is just used for visualization,you can change the code to test your own image on condition that you have trained another model "person-center-network"(similar to CPMs).
  • I hope that'll be helpful for you.

convolutional-pose-machines-pytorch's People

Contributors

namedben avatar

Watchers

 avatar

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.