Code Monkey home page Code Monkey logo

weightedloss_convolutional_pose_machines_pytorch's Introduction

WeightedLoss_Convolutional_Pose_Machines_PyTorch

PyTorch (re)implement of Convolutional Pose Machine [1] with weighted loss as an option. More information about weighted loss please refer to another repo of me.

Please notice that this is an underdeveloped implementation of Convolutional Pose Machine for my own experiment. But the architecture and training are very close to the original model, please feel free to use it for your own project.

Prerequisites

  • Python 3.6
  • scipy
  • sklearn
  • pillow
  • PyTorch 0.2
  • torchvision 0.1.9
  • tensorboardX (only if you need tensorboard summary)
  • TensorFlow (for tensorboard web server)
  • OpenCv > 3.0

Download datas

I found that original link of the Leeds Sports Pose Dataset at University of Leeds has been removed. You can download the dataset here and the extended dataset here.

Please download the dataset and unzip it in data folder with a directory tree like this:

data
└── LSP
    ├── lsp_dataset
    │   ├── images
    │   └── visualized
    └── lspet_dataset
        └── images

Usage

Training

With weighted loss

python -W ignore::UserWarning cpm_train.py --lsp-root ./data/LSP --ckpt-dir ./model  --summary-dir ./summary --cuda

Without weighted loss

python -W ignore::UserWarning cpm_train.py --lsp-root ./data/LSP --ckpt-dir ./model  --summary-dir ./summary --cuda --wl

More argument for training please refer to cpm_train.py.

References

[1] Wei, Shih-En, et al. "Convolutional pose machines." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2016.

weightedloss_convolutional_pose_machines_pytorch's People

Contributors

jindongjiang avatar

Watchers

James Cloos 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.