Comments (8)
I guess the problem is caused either by get_activations_batch
or the snn_precomp
that is available in INI_target_sim
.
As I don't really see any logical difference between the old get_activations_batch
and new, so maybe there is some fishy part in snn_precomp
variable?
from snn_toolbox.
Please specify what change you are concerned about in those plots. In one case you are using average, in the other max pooling, so of course there will be differences. I'm surprised that in both cases the activations extend to negative values. How can this be since we are using ReLU's?
I have not pushed anything since yesterday at noon, because currently I'm doing major refactoring, which will also affect get_activations_batch
and snn_precomp
. I will push my changes on Monday or Tuesday next week. On my side the plots are fine.
from snn_toolbox.
First two figures is from a model I trained yesterday, which is named cnn_avg_pool.py
in CIFAR-10 folder. This is a direct copy of the CNN model in CIFAR-10, I just changed number of filters in third and fourth convolution layer, and there is ReLU activation after every convolution layer. And yes it is strange to have negative values.
I will check out SpikeConv2DReLU
, because it doesn't make sense at all..
from snn_toolbox.
OK, thanks. But if you don't find something right away, I would suggest you wait for my commit next week, because I simplified lots of things in the whole workflow and structure. Since it is working fine on my side, I expect it will fix this too.
from snn_toolbox.
Yeah, thanks.
from snn_toolbox.
Ok, I will wait for your change next week then, somehow the plot is still messed up after I cloned a fresh copy to the server..
The 99.9 percentile trick works beautifully by the way.
from snn_toolbox.
@rbodo Alright, I found the problem, in keras_input_lib
, when you assign get_activ
variable to convolution and dense layer, you didn't assign to the activation of its activation layer instead of its own. I changed this and it works fine now..
from snn_toolbox.
I see. Thanks for fixing it, but this part will be gone in the new version anyway, I'm simplifying things a lot.
Will push on Monday.
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
- Query regarding INI simulator HOT 6
- 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.