Comments (8)
Hi,
Thanks for your question. Implementing spiking networks for object detection would be a really cool feature for the toolbox. It will need some work though (and I won't be able to do it myself).
As you say, the toolbox expects classifiers, so whenever the network is evaluated (before and after parsing, and after conversion), the toolbox tries to compute an accuracy score by taking the argmax of the network output and comparing it against the provided labels (in the file y_test.npz
). This is the part that you will have to change. Instead of providing just one class label per image, you will have to provide (possibly multiple) labels and bounding boxes for each frame. And you will have to tell the toolbox not to compute accuracies, but mean-average-precision scores.
Another thing that you need to check is that the logging and plotting functions do not break. The toolbox can be configured to write various quantities to disk during and after simulation, and to generate plots of intermediate results etc. A simple workaround would be to just let the toolbox store and plot zeros for the accuracies and other things that you removed. But you may want to add functionality to store and plot your new output so you can debug and evaluate more easily.
I suggest you try to follow the processing pipeline here to see what happens to the output of the network after simulating the SNN:
Basically everything after this line is about decoding the network output, logging and plotting results. This is where you will have to modify most.
Here is one of the places where the ANN get's evaluated, which will have to be modified as well:
Good luck!
from snn_toolbox.
Thanks!
I found the h5 file of vgg not in folder. I used the model trained by my own data set, but it reported a error"can not found the model", I edit iconfig according to the given example,any suggestion?
from snn_toolbox.
The h5 file of VGG is too big to put in the repository.
You need to set the parameter filename_ann
to the name of your model (without the .h5
). In addition, you need to tell the toolbox where to find the model:
If you don't set the parameter path_wd
in your config file, then it will be set to the folder where your config file is. In that case, you need to put your model into the folder where the config file is.
Otherwise, just set the path_wd
to where your model is.
from snn_toolbox.
I did what you said. ,the parameter path_wd was set, the model in the folder where the config file is. but it reported " No model found in config file ”,I spent a day finding the problem, but still not solved. Help!
from snn_toolbox.
Please send me the full error trace, your config file, and a picture of your file structure (where the model and config file are).
from snn_toolbox.
from snn_toolbox.
Sorry, I did not see any files.
from snn_toolbox.
sorry,I reply by QQ E-mail, the file upload failed. I tried convert the caffemodel,it succeeded,the config file is ok. I think I probably know the reason of the error. When I ran my Python file on my computer, it still report the same error as this"NO model in the config file", so it should be my Python or keras problem.
from snn_toolbox.
Related Issues (20)
- AttributeError: module 'numpy' has no attribute 'asscalar'
- 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
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.