Comments (4)
I've looked into the issue with low ANN accuracy after parsing, it's the same for me. Will not be able to fix this right now - hopefully later this week.
Regarding binary weights, this post should help:
from snn_toolbox.
Thank you for your reply.
I looked at #28 and have another question. If batch normalization is making the weights continuous again, will it be okay to re-cast them as binary during inference? Otherwise, they won't retain their binary characteristic and there won't be much to gain by constraining the weights to discrete {-1, +1} values during training.
from snn_toolbox.
It's difficult to give a definite answer here as these quantization methods are still actively researched. Of course you can try re-casting them as binary, which may very well work for MNIST, but probably not for CIFAR-10 (or not without significant drop in accuracy). You could also try to train the original model without batch-normalization (BN), but it will be tricky to get the network to converge like that.
It can be argued that "binary" networks that have BN layers in them are still efficient, especially when running on dedicated hardware, because even if the weight values are full precision again due to BN, they are at least discretized, which reduces the memory footprint. (Each layer has only as many different weight values as there are channels in the feature map.)
from snn_toolbox.
Hi @sms821,
I also meet a similar problem about the low accuracy of BinaryNet for CIFAR-10.
Do you find the method to fix it?
Thank you very much.
Yi
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.