CEA-LIST / N2D2

N2D2 is an open source CAD framework for Deep Neural Network simulation and full DNN-based applications building.
Other
146 stars 35 forks source link

SNN inference #49

Closed nassim-abderrahmane closed 4 years ago

nassim-abderrahmane commented 4 years ago

Hello,

When I try to do inference in the spiking domain with LeNet example present in "models/" (first, learn the model in frame domain using "LeNet.ini", and then test it in spike domain using "LeNet_spike.ini"), I have the following error:

Final recognition rate: 99.13% (error rate: 0.87%) Sensitivity: 99.12% / Specificity: 99.90% / Precision: 99.12% Accuracy: 99.83% / F1-score: 99.12% / Informedness: 99.02%

Importing weights from directory 'weights_range_normalized'. Time elapsed: 5.12 s Error: Could not open synaptic file: weights_range_normalized/conv1_weights.syntxt

When I verified in the folder where the simulation is held, I've seen that there is no directory called "weights_range_normalized". In the previous versions of N2D2, there was a folder with that name. I think that some changes made the directory disappeared and which caused this error.

Thank you for helping, Nassim.

nassim-abderrahmane commented 4 years ago

Hello,

It's again me :D !

I have found the answer in another issue.

In brief, you have to create a new folder and call it "weights_range_normalized". Then, put inside the content of "weights_validation" folder.

Thanks, Nassim Abderrahmane