Code Monkey home page Code Monkey logo

nest-snn's Introduction

About the Project

The repository contains some examples of pre-trained SNN (Spiking Neural Network) models.

The models were trained using the MM-BP training algorithm, and the models run on the CARLsim4 SNN simulator.

The models aim to perform image classification or speech recognition. For the image classification, the MNIST or N-MNIST dataset is used. For the speech recognition, the TI46 dataset is used.

Getting Started

The project has been tested under the Linux Ubuntu 16.04 LTS with CUDA 9.0.

Prerequisities

  1. Linux (We have tested under ubuntu 16.04)
  2. CUDA 9.0 (Using other CUDA verions may not work)

Getting Started

  1. Download CARLsim4

  2. Download this project

    git clone [email protected]:etri/nest-snn.git
  3. Patch modified CARLsim4 source code

    cd CARLsim4
    patch -p1 < carlsim.patch

    (Note) The neuron and synapse models assumed in MM-BP differ from those provided by CARLsim4. So, we additionally implemented the neuron and synapse models in CARLsim4. And we provide the additional implementation in the form of patch file(carlsim.patch) upon request. Please contact us if you would like to use the patch file.

  4. Install CARLsim4 following the CARLsim4 installation process.

Running Examples

  1. MNIST
    cd snn_models/MNIST_trained
    make
    ./trained_mnist 
    
  2. N-MNIST
    cd snn_models/N-MNIST_trained
    make
    ./trained_nmnist 
    
  3. TI46
    cd snn_models/TI46_trained
    make
    ./trained_ti46
    

Get Dataset

  1. MNIST dataset

    Get the MNIST dataset. Place the dataset in the snn_models/MNIST_trained/mnist.

  2. N-MNIST dataset

    Get the N-MNIST dataset. Then encode data following the instructions provided by MM-BP github page.

    We provide some input samples(snn_models/N-MNIST_trained/sample_inputs) for the test.

  3. TI46 dataset

    TI 46 dataset is not free, and the source code used for encoding has not been opened. Thus we do not provide input files. If you contact us via email, we can guide you on how to obtain the dataset and how to encode it.

License

This project is licensed under Apache 2.0 License.

Contact

PAK,EUNJI - [email protected]

Project Link: https://github.com/etri/nest-snn.git

nest-snn's People

Contributors

etri-pakeunji avatar pakeunji avatar

Stargazers

Q. Xu avatar  avatar yuseung ma avatar  avatar Youngmok Ha avatar Taeho Kim avatar Yongin Kwon avatar Jemin Lee avatar  avatar  avatar Misun Yu avatar Jubin avatar  avatar

Watchers

 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.