-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range #4
Comments
Try adding the Activation Layer after Conv2D and Dense, such as, inputs = Input((32, 32, 3)) The problem is due to that SpKeras counts Activation layer for conversion. |
I did that, but still facing the same issue. My code:
My model summary:
I also tried adding activation after each Conv2D layer, but faced the same issue. My code:
|
Can you change |
It worked, thanks! Can you help with this ?
I am running it for 25 epochs and getting around 83 % of train accuracy. |
Have you changed |
Yes, below is my code for the architecture:
|
Did you normalise your input into [0,1]? |
Hi, I did normalize the input into [0,1] but due to some reasons it didn't get normalized. But now after normalizing it properly I am getting a good accuracy (65.47 %) as compared to before but is not that good. Do you have any suggestions in order to improve my SNN accuracy ? |
You can refer our paper to include BatchNormalisation Layer (after convolutional and dense layer) and clipping methods to improve conversion efficiency. |
Okay, I will read that. Thank you for the suggestion and your help! |
I have trained and saved a model and want to convert it to SNN by using SpKeras, but after running the code to convert I am facing the following issue:
My model:
Any solutions ?
I also tried solving it by referring to this, but I wasn't able to.
The text was updated successfully, but these errors were encountered: