Comments (6)
- GPU / CPU
- An SNN converted for the INI backend is just a tensorflow DNN with added functionality (such as membrane potential, spike behavior etc). So in principle you can run the resulting graph outside of the toolbox but then you have to take care of the right input encoding and writing your own simulation time loop.
- https://snntoolbox.readthedocs.io/en/latest/guide/intro.html
from snn_toolbox.
Thanks for your response @rbodo. Is it possible to get the power/energy metrics for INI using snntoolbox or by any other way ?
Also, can you please tell me how can I convert my SNN to pynn format and simulate it on BrainScaleS using EBRAINS ?
I do have access to BrainScaleS via EBRAINS but I am just struggling to simulate my SNN on BrainScaleS. Also, is there any resource that converts the CNN to SNN and then simulates it on BrainScaleS ?
from snn_toolbox.
The toolbox has no power measurement built in for INI. Since it's just a DNN running on GPU, you can use standard benchmarking tools for that.
The toolbox supports pynn but provides link to a BrainScaleS backend. One option would be to run the conversion with nest / Brian2 backend and then use the saved weight files when constructing your model on BrainScaleS directly. These files are just generic connection tables. The toolbox handles the unrolling of the convolution layers into fully-connected layers, and optionally performs weight normalization to improve the SNN accuracy. You should be able to use the resulting connection tables in a network of fully-connected non-leaky integrate-and-fire neurons. You might notice a discrepancy on neuromorphic hardware though because of weight / state quantization.
from snn_toolbox.
Do you mean SNN in "just a DNN running on GPU" ?
Because this code (https://github.com/NeuromorphicProcessorProject/snn_toolbox/blob/master/examples/mnist_keras_INI.py) basically converts the CNN to SNN and then simulates the converted SNN, right ?
Also, is there any converter available in SNN toolbox that justs converts the SNN to pynn format and when I am using BrainScaleS using EBRAINS, I can just build up the model using saved configuration (saved model in the pynn format) and therfore run it on BrainScaleS ?
Also, if you know the code or any resource that achieves this thing, can you please share it ?
from snn_toolbox.
Do you mean SNN in "just a DNN running on GPU" ?
Yes, in case of INI sim (see my first answer).
I don't know of a resource that does conversion for Brainscales, and don't know how to "build up the model" in their API. Perhaps best to contact their team.
from snn_toolbox.
Okay, thank you so much for your help!
from snn_toolbox.
Related Issues (20)
- TypeError: can't multiply sequence by non-int of type 'float' HOT 4
- IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
- SpinnmanIOException: IO Error: Failed to communicate with the machine HOT 7
- Conv1D Conversion Normalization Issue HOT 2
- ONNX model could not be ported to Keras.Mismatched elements 100% HOT 1
- Code required for a research paper HOT 2
- ModuleNotFoundError: No module named 'keras_rewiring' HOT 2
- Which neuromorphic hardware does SNNtoolbox simulate ? HOT 3
- Error happened while building parsed model HOT 2
- Key Error HOT 1
- index -1 is out of bounds for axis 1 with size 0 HOT 2
- Membrane Potential Values after spike conv layer. HOT 1
- Loading a a converted SNN .h5 model using 'load_model' HOT 1
- Energy and runtime estimation for running the SNN on neuromorphic simulator HOT 3
- TTTFS dyn thresh and TTFS corrective not working HOT 2
- Poisson Rate Encoding HOT 4
- Quantization HOT 6
- TTFS HOT 1
- Cannot import name 'literal' from typing. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snn_toolbox.