Giter VIP home page Giter VIP logo

transferrnn's Introduction

TransferRNN

Workgroup Project at CapoCaccia 2019

TransferRNN framework implements an RNN running on Dynapse chip using CortexControl Python API

Installation

  1. Download the nightly build of CortexControl from http://ai-ctx.gitlab.io/ctxctl/primer.html#downloads

  2. Clone TransferRNN inside the main CortexControl folder

clone https://github.com/he-xu/TransferRNN.git
  1. Prepare the x_projection_train.pkl and state_train.pkl files (by default the script will look for them in TranserRNN/data/)

Running

The framework can run in two modes:

  • ctxctl : inside CortexControl (faster but trickier to setup)
  • rpyc : in a remote python console using RPyC connection (more stable but slower because of data transfering between python threads)

ctxctl mode

  1. Start Cortexcontrol: ./cortexcontrol
  2. In the CortexControl console run import TransferRNN.run_rnn_in_ctxctl

Note: Most likely, you will get an error while importing numpy. To fix that, you will have to make sure you have numpy version 1.15.4 (with pip install numpy=1.15.4) in your installation of python and then append the path to site-packages of this python installation inside the TransferRNN/run_rnn_in_ctxctl.py script on line 12.

rpyc mode

  1. Install RPyC with pip install rpyc

  2. Start CortexControl: ./cortexcontrol

  3. In the CortexControl console run PyCtxUtils; PyCtxUtils.start_rpyc_server()

  4. Run run_rnn_with_rpyc.py in a python console of your choice (tested in Spyder)

Note: Expect the spike counting phase to be slow. Optimization of this phase is the next framework development step.

transferrnn's People

Contributors

dzenn avatar he-xu avatar

Watchers

Alpha Renner avatar

Forkers

dzenn

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.