Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example file mnist24_16c4s2_24c5s2_150_10_Spike.ini is broken #70

Open
rayjyh opened this issue Nov 4, 2020 · 0 comments
Open

Example file mnist24_16c4s2_24c5s2_150_10_Spike.ini is broken #70

rayjyh opened this issue Nov 4, 2020 · 0 comments
Labels

Comments

@rayjyh
Copy link

rayjyh commented Nov 4, 2020

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!

@cmoineau cmoineau changed the title Could not open synaptic file Example file mnist24_16c4s2_24c5s2_150_10_Spike.ini is broken Mar 3, 2022
@cmoineau cmoineau added the bug label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants