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

can't not run the lenet5 keras examples #16

Closed
liang10k opened this issue Jul 20, 2018 · 3 comments
Closed

can't not run the lenet5 keras examples #16

liang10k opened this issue Jul 20, 2018 · 3 comments

Comments

@liang10k
Copy link

hi, I meet the problem showed belows when I just run the command ' snntoolbox config -t '
ValueError: Dimensions must be equal, but are 6 and 3 for '01MaxPooling2D_6x12x12_1/add' (op: 'Add') with input shapes: [1,6,12,12], [1,3,12,24].
Could you please tell me how to fix this problem?

@rbodo
Copy link
Contributor

rbodo commented Jul 20, 2018

Looks like the "image_data_format" in the keras config file is set to "channels_last". Needs to be "channels_first" for the examples to run.

@liang10k
Copy link
Author

But how can I exactly change the "channels_last" to be "channel_first"? Otherwise, Where is the keras config file which you have metioned ? Do you mean the config file under “\snn_toolbox\examples\models\lenet5\keras“ ?

@rbodo
Copy link
Contributor

rbodo commented Jul 20, 2018

No, it is the the keras.json configuration file; for more details see here:
https://keras.io/backend/#kerasjson-details

@rbodo rbodo closed this as completed Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants