Coder Social home page Coder Social logo

thdhmmbilstm's Introduction

Temporal_hierarchical_dictionary_HMM

This code is for the paper: Temporal Hierarchical Dictionary Guided Decodingfor Online Gesture Segmentation and Recognition. We propose a novel hybrid HMM-DNN framework for online segmentation and recognition of skeleton-based human gestures. The network is tested on the four datasets, MSRA, OAD action dataset, DHG gesture dataset and Chalearn 2014 dataset. We report state-of-the-art performances on all these datasets.

Code written by Chen Haoyu, University of Oulu.

The original code was written in Theano, we re-implemented it with Keras-Tensorflow.

We train and evaluate on Ubuntu 16.04, it will also work for Windows and OS.

Code structure

  • step1_generateEntropyMap is used for generating THD-HMM with entropy maps
  • step2_THD_HMM-LSTM is used for training the BiLSTM with the generated THD-HMM for recognition and segmentation

Quick start (example with OAD dataset)

  • We already prepare the pretrained THD-HMM dictionary for OAD dataset, which can be used for training and validing the networkds to recognize the gestures directly. So you can skip step1_generateEntropyMap and move to step2_THD_HMM-LSTM directly.

    1. Download the dataset and put it into folder ./step2_THD_HMM-LSTM, OAD can be download from here
    1. run the code with: python main.py
    1. check the experiment results in the folder ./experi/.

Train your own THD-HMM (example with Chalearn 2014 dataset)

    1. Download the dataset and put it into folder ./step1_THD_HMM-LSTM, Chalearn dataset can be download from here, note that we use Track 3: gesture recognition, for validating.
    1. run the code main_THD.m with matlab.
    1. check the generated THD-HMM and calculated Entropy maps in the folder ./template/.

Environments

Ubuntu 16.04
Python 3.6.5
Keras 2.3.1
Tensorflow==1.15.0

thdhmmbilstm's People

Contributors

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