Giter VIP home page Giter VIP logo

Comments (8)

duguyue100 avatar duguyue100 commented on May 23, 2024

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.

rbodo avatar rbodo commented on May 23, 2024

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.

duguyue100 avatar duguyue100 commented on May 23, 2024

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.
0activations

I will check out SpikeConv2DReLU, because it doesn't make sense at all..

from snn_toolbox.

rbodo avatar rbodo commented on May 23, 2024

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.

duguyue100 avatar duguyue100 commented on May 23, 2024

Yeah, thanks.

from snn_toolbox.

duguyue100 avatar duguyue100 commented on May 23, 2024

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.

duguyue100 avatar duguyue100 commented on May 23, 2024

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

https://github.com/NeuromorphicProcessorProject/snn_toolbox/blob/spikemp/snntoolbox/model_libs/keras_input_lib.py#L158-L171

from snn_toolbox.

rbodo avatar rbodo commented on May 23, 2024

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)

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.