snn_toolbox icon indicating copy to clipboard operation
snn_toolbox copied to clipboard

ONNX model could not be ported to Keras.Mismatched elements 100%

Open unlemon opened this issue 3 years ago • 1 comments

I encounter an issue when trying to convert a pretrained Pytorch Alexnet model to SNN. I read the code and found that pytorch_input_lib.py is used to convert Pytorch model to Keras model. But the error comes up as below: image What should I do? Thanks!

unlemon avatar Sep 21 '22 03:09 unlemon

You should be able to fix the error by adding ZeroPadding layers as suggested in the console output.

Please see also this related issue: #96

rbodo avatar Sep 26 '22 01:09 rbodo