N2D2 icon indicating copy to clipboard operation
N2D2 copied to clipboard

Example file `mnist24_16c4s2_24c5s2_150_10_Spike.ini` is broken

Open rayjyh opened this issue 3 years ago • 0 comments

I have run the following command to train a network for mnist. ./n2d2 ../../models/mnist24_16c4s2_24c5s2_150_10_Spike.ini -test

Then I tried to trancode the learned model into an SNN by running ./n2d2 ../../models/mnist24_16c4s2_24c5s2_150_10_Spike.ini -test and got the following error:

Option -test: perform testing Loading network configuration file ../../models/mnist24_16c4s2_24c5s2_150_10_Spike.ini Layer: conv1 [Conv(Transcode)] Notice: Could not open configuration file: conv1.cfg Shared synapses: 256 Virtual synapses: 30976 Inputs dims: 24 24 1 Outputs dims: 11 11 16 Layer: conv2 [Conv(Transcode)] Notice: Could not open configuration file: conv2.cfg Shared synapses: 2250 Virtual synapses: 36000 Inputs dims: 11 11 16 Outputs dims: 4 4 24 Layer: fc1 [Fc(Transcode)] Notice: Could not open configuration file: fc1.cfg Synapses: 57600 Inputs dims: 4 4 24 Outputs dims: 1 1 150 Layer: fc2 [Fc(Transcode)] Notice: Could not open configuration file: fc2.cfg Synapses: 1500 Inputs dims: 1 1 150 Outputs dims: 1 1 10 Target: fc2 (target value: 1 / default value: 0 / top-n value: 1) Total number of neurons: 2480 Total number of nodes: 2480 Total number of synapses: 61606 Total number of virtual synapses: 126076 Total number of connections: 126076 Notice: Unused section fc2.Target in INI file Learning database size: 48000 images Validation database size: 12000 images Testing database size: 10000 images Notice: stimuli depth is 8U (according to database first stimulus) Notice: normalizing the stimuli in the [0;1] range. [LOG] Stimuli transformations flow (transformations.png) [LOG] Network graph (mnist24_16c4s2_24c5s2_150_10_Spike.ini.png) sh: 1: dot: not found sh: 1: dot: not found [LOG] Network SVG graph (mnist24_16c4s2_24c5s2_150_10_Spike.ini.svg) [LOG] Network stats (stats/) [LOG] Solvers scheduling (schedule/) [LOG] Layer's receptive fields (receptive_fields.log) [LOG] Labels mapping (.Target/labels_mapping.log) [LOG] Labels legend (.Target/labels_legend.png) [LOG] Learn frame samples (frames/frame*) [LOG] Test frame samples (frames/test_frame*) Importing weights from directory 'weights_validation'. [7:17.12 ] Testing #100 80.20% Testing #200 82.59% ... Testing #9900 88.60% Testing #9999 88.59% Final recognition rate: 88.59% (error rate: 11.41%) Sensitivity: 88.38% / Specificity: 98.73% / Precision: 88.71% Accuracy: 97.72% / F1-score: 88.36% / Informedness: 87.12%

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

It is weird that there is no folder called weights_range_normalized. When I did a search in N2D2 root, I got:

/N2D2$ find . -name conv1_weights.syntxt ./models/weights_validation/conv1_weights.syntxt ./models/weights_init/conv1_weights.syntxt ./build/bin/weights_validation/conv1_weights.syntxt ./build/bin/weights_init/conv1_weights.syntxt ./tests/tests_data/mnist_multibranch_model/weights/conv1_weights.syntxt

Any help will be appreciated!

rayjyh avatar Nov 04 '20 13:11 rayjyh