GithubHelp home page GithubHelp logo

megayeye / st-hmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmadry/st-hmp

0.0 1.0 0.0 12.28 MB

Implementation of the Spatio-Temporal Hierarchical Matching Pursuit (ST-HMP) descriptor presented in the paper: M. Madry, L. Bo, D. Kragic, D. Fox, "ST-HMP: Unsupervised Spatio-Temporal Feature Learning for Tactile Data". In ICRA, 2014 (Download: http://www.nada.kth.se/~madry/publications/madry2014ICRA.pdf).

License: Other

MATLAB 10.49% C 65.69% C++ 23.04% M 0.61% Objective-C 0.17%

st-hmp's Introduction

SPATIO-TEMPORAL HIERARCHICAL MATCHING PURSUIT SOFTWARE

This package contains implementation of the Spatio-Temporal Hierarchical Matching Pursuit (ST-HMP) descriptor presented in the following paper:

[1] Marianna Madry, Liefeng Bo, Danica Kragic, Dieter Fox, "ST-HMP: Unsupervised Spatio-Temporal Feature Learning for Tactile Data". In IEEE International Conference on Robotics and Automation (ICRA), May 2014 Download: http://www.nada.kth.se/~madry/publications/madry2014ICRA.pdf

The code was developed by Marianna Madry ([email protected]) at the Royal Institute of Technology (KTH), Sweden and the University of Washington, WA, USA. It is released under the BSD license.

DEMO

We provide implementation of a complete classification system in which 3D data matrices (spatio-temporal sequences) are represented using the ST-HMP descriptor. The code can be also used for 2D data matrices (spatial signal, such as images) to represente them using the HMP descriptor.

Demo shows how to use the ST-HMP for an object classification task based on sequences of real tactile data. It consists of two parts:

  • Learning and extracting of: -- Hierarchical Matching Pursuit (HMP) descriptor -- Spatio-Temporal Hierarchical Matching Pursuit (ST-HMP) descriptor
  • Training and testing using SVM classifiers

Running demo:

  • demo includes two external dependencies: liblinear and ksvdbox. To recompile the mex codes, please follow instructions in these packages
  • in order to run demo, please execute the file: ./code/demo_HMP_STHMP.m
  • system parameters are defined and described in a few files in the directory ./code/parameters
  • generated results will be saved in the directory ./output
  • demo was tested for Linux and Matlab R2011b. If any problems occur, please send an email to Marianna Madry ([email protected])

The implementation of the HMP descriptor is based on the Multipath Hierarchical Matching Pursuit software by Liefeng Bo ([email protected]) downloaded from: http://research.cs.washington.edu/istc/lfb/software/hmp/mhmp_cvpr.zip

INPUT FILE FORMAT

  • Training and testing list:

    • in each line specify class_label path_to_data_file

      For example, as in file ./data/Drimus12RAS_schunk_dexterous/format:mat/_setup/train.list 0 ../data/Drimus12RAS_schunk_dexterous/format:mat/BALL_RUBBER/grasp-1300209406.mat 1 ../data/Drimus12RAS_schunk_dexterous/format:mat/BALSAM/grasp-1300210231.mat

      • 'class_label' should be between 0-9
      • paths to your own train and test list files can be set in: ./code/parameters/set_file_paths.m
  • Sensory data format:

  • example of data file: ./data/Drimus12RAS_schunk_dexterous/format:mat/BALSAM/grasp-1300210231.mat
  • data file contains:
    • input data saved as 3D matrix In the demo: data from six tactile sensors are saved in a structure 'TS' that contains six 3D matricies: TS{1}, TS{2}, .., TS{6} data from joint angles are saved in 'JS' 3D matrix (but these data are not used in the demo)
    • sequence length In the demo: 'seqLength', it is also equal to 'size(TS{1},3)'

DATASET

Tactile data were collected for five objects using the 3-finger Schunk Dexerous hand with three proximal (14x6 pixels) and three distal (13x6 pixels) tactile sensors. The data in a text format can be found in ./data/Drimus12RAS_schunk_dexterous/format:txt. The same data in the Matlab format can be found in ./data/Drimus12RAS_schunk_dexterous/format:mat

Database was collected by Alin Drimus ([email protected]). Please directly contact Alin Drimus to obtain the complete database for 10 object categories. Detailed description of the database can be found in: [2] Alin Drimus, Gert Kootstra, Arne Bilberg, Danica Kragic, "Design of a flexible tactile sensor for classification of rigid and deformable objects", In the Robotics and Autonomous Systems, 2012 .

st-hmp's People

Contributors

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