GithubHelp home page GithubHelp logo

peterzhousz / touch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erkil1452/touch

0.0 0.0 0.0 20 KB

The source code for our paper "Learning the signatures of the human grasp using a scalable tactile glove"

Home Page: http://humangrasp.io

License: Other

Python 100.00%

touch's Introduction

Learning the signatures of the human grasp using a scalable tactile glove

Introduction

This is a Pytorch based code for object classification and object estimation methods presented in the paper "Learning the signatures of the human grasp using a scalable tactile glove".

It relies on Pytorch 0.4.1 (or newer) and the dataset that can be downloaded separately from http://humangrap.io .

System requirements

Requires CUDA and Python 3.6+ with following packages (exact version may not be necessary):

  • numpy (1.15.4)
  • torch (0.4.1)
  • torchfile (0.1.0)
  • torchvision (0.2.1)
  • scipy (1.1.0)
  • scikit-learn (0.19.1)

Dataset preparation

  1. Download the classification and/or weights dataset from http://humangrap.io .
  2. Extract the dataset metadata.mat files to a sub-folder data\[task]. The resulting structure should be something like this:
data
|--classification
|    |--metadata.mat
|--weights
        |--metadata.mat

The images in the dataset are for illustration only and are not used by this code. More information about the dataset structure is availble in http://humangrap.io .

  1. Alternatively, extract the dataset to a different folder and use a runtime argument --dataset [path to metadata.mat] to specify its location.

Object classification

Run the code from the root working directory (the one containing this readme).

Training

You can train a model from scratch for N input frames using:

python classification/main.py --reset --nframes N

You can change the location of the saved snapshots using --snapshotDir YOUR_PATH.

Testing

You can test the provided pretrained model using:

python classification/main.py --test --nframes N

History

Any necessary changes to the dataset will be documented here.

  • May 2019: Original code released.

Terms

Usage of this dataset (including all data, models, and code) is subject to the associated license, found in LICENSE. The license permits the use of released code, dataset and models for research purposes only.

We also ask that you cite the associated paper if you make use of this dataset; following is the BibTeX entry:

@article{
	SSundaram:2019:STAG,
	author = {Sundaram, Subramanian and Kellnhofer, Petr and Li, Yunzhu and Zhu, Jun-Yan and Torralba, Antonio and Matusik, Wojciech},
	title = {Learning the signatures of the human grasp using a scalable tactile glove},
	journal={Nature},
	volume={569},
	number={7758},
	year={2019},
	publisher={Nature Publishing Group}
	doi = {10.1038/s41586-019-1234-z}
}

Contact

Please email any questions or comments to [email protected].

touch's People

Contributors

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