Git Product home page Git Product logo

slom's Introduction

Spiking GLOM

"Spiking GLOM: Bio-inspired Architecture for Next-generation Object Recognition", Peng Kang, Srutarshi Banerjee, Henry Chopp, Aggelos Katsaggelos, Oliver Cossairt. In review.

Setup

From the main directory run:

pipenv install

pip install spikingjelly

to install the required dependencies.

Training on Spiking GLOM / Potential-assisted Spiking GLOM

To run contrastive pre-training on CIFAR-10, execute:

python spiking_glom_new/main.py --flagfile spiking_glom_config_new/spiking_glom_contrast.cfg

After pre-training, to run supervised training on CIFAR-10, execute:

python spiking_glom_new/main.py --flagfile spiking_glom_config_new/spiking_glom_supervise.cfg

See spiking_glom_new/flags_Agglomerator_slom.py to check all the flag meanings.

Training on Hybrid Spiking GLOM

To run contrastive pre-training on CIFAR-10, execute:

python hybrid_spiking_glom_new/main.py --flagfile hybrid_spiking_glom_config_new/spiking_glom_contrast.cfg

After pre-training, to run supervised training on CIFAR-10, execute:

python hybrid_spiking_glom_new/main.py --flagfile hybrid_spiking_glom_config_new/spiking_glom_supervise.cfg

Calculate the firing rates

For Potential-assisted Spiking GLOM:

python spiking_glom_new/main_energy.py --flagfile spiking_glom_config_new/spiking_glom_energy.cfg

For Hybrid Spiking GLOM:

python hybrid_spiking_glom_new/main.py --flagfile hybrid_spiking_glom_config_new/spiking_glom_energy.cfg

Freeze to plot

python spiking_glom_new/main.py --flagfile spiking_glom_config_new/spiking_glom_plot.cfg

Pre-trained models

We provide pre-trained models Potential-assisted Spiking GLOM and Hybrid Spiking GLOM for calculate the firing rates and specific 5-level Potential-assisted Spiking GLOM for freeze to plot.

Credits

slom's People

Contributors

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