NeuromorphicProcessorProject / snn_toolbox

Toolbox for converting analog to spiking neural networks (ANN to SNN), and running them in a spiking neuron simulator.
MIT License
360 stars 104 forks source link

Questions about the converted weights #116

Closed xiaoyuehai closed 2 years ago

xiaoyuehai commented 2 years ago

I am confused about the weights after converting ANN, for example when my convolution layer parameters are (inp=1, outp=32, kernel_size=(3,3)), so the number of ANN parameters should be 320 under the condition of adding bias, but the size of SNN after conversion is 215168 and is 1 dimensional, so how should I use it, is it related to my simulator (Brain2)?

rbodo commented 2 years ago

In Brian2, there is no direct support for weight sharing as in convolutions. So the conv layers need to be "unrolled" into fully-connected layers, which implies copying of the kernels, hence the increased number of parameters and single dimension.