Giter VIP home page Giter VIP logo

Comments (8)

rbodo avatar rbodo commented on May 22, 2024

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:

out_spikes = self.snn.predict_on_batch(input_b_l)

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:

score = val_fn(x_test, y_test, batch_size, verbose=0)

Good luck!

from snn_toolbox.

wangcm12 avatar wangcm12 commented on May 22, 2024

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.

rbodo avatar rbodo commented on May 22, 2024

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.

wangcm12 avatar wangcm12 commented on May 22, 2024

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.

rbodo avatar rbodo commented on May 22, 2024

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.

wangcm12 avatar wangcm12 commented on May 22, 2024

from snn_toolbox.

rbodo avatar rbodo commented on May 22, 2024

Sorry, I did not see any files.

from snn_toolbox.

wangcm12 avatar wangcm12 commented on May 22, 2024

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)

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.