Coder Social home page Coder Social logo

silasxue / deeppose-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samitok/deeppose

0.0 2.0 0.0 10.38 MB

DeepPose implementation with TensorFlow

Home Page: http://arxiv.org/abs/1312.4659

License: GNU General Public License v3.0

Python 100.00%

deeppose-1's Introduction

DeepPose

NOTE: This is not official implementation. Original paper is DeepPose: Human Pose Estimation via Deep Neural Networks. SECOND NOTE: This implementation was a project for my Pattern Recognition Course at METU. Codes are in a very primitive level. But people might find them useful.

Requirements

  • TensorFlow (Google's Neural Network Toolbox)
  • Python 2.7.x
  • Numpy
  • SciPy.io (For loading .mat files)
  • PIL or Pillow
  • Six (Python 2 and 3 Compatibility Library)

Important

Edit values in 'LSPGlobals.py' as you want them. All the codes run using values in that file.

Data preparation

python GetLSPData.py

This script downloads Leeds Sports Pose Dataset (http://www.comp.leeds.ac.uk/mat4saj/lsp.html) and performs resizing as your Neural Network input size. Resized images and their labels are saved into binary files.

Dataset:

Start training

Just run:

python TrainLSP.py

To Follow Progress

tensorboard --logdir=/path/to/log-directory   #path is '~/Desktop/LSP_data/TrainData' if LSPGlobals.py is unchanged

Evaluating the trained model

python EvalDeepPose.py

This will get all images placed in '--input_dir' with extension '--input_type' will draw stick figures on images based on estimations from the model. Drawn images will be placed in '--output_dir'.

Video

I recommend you to use ffmpeg to turn videos into images, feed them to network and make video from the drawn images using ffmpeg again.

Here is my example

deeppose-1's People

Watchers

 avatar  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.