MarsTechHAN / keras2ncnn

A keras h5df to ncnn model converter
MIT License
89 stars 19 forks source link

[ERROR] Failed to read h5df file. You are not selecting a valid keras model file. #34

Open MrCary opened 3 years ago

MrCary commented 3 years ago

test.zip hello,There's a problem where i executive command of "python -m keras2ncnn -i test.h5 -i ./" the error is as follows: " Reading and parsing keras h5df file...
[ERROR] Failed to read h5df file.
You are not selecting a valid keras model file.
You can check it by either opening it by Keras or Netron.
If you are very confident of your file, please repoert a bug at: https://github.com/MarsTechHAN/keras2ncnn "

MarsTechHAN commented 3 years ago

See it, I will take a try.

MarsTechHAN commented 3 years ago

I think you are not using the latest one. You may need to run pip upgrade. image

You may also need to modified you code to remove concat axis -1, -2 and 0, which is not able to be converted to ncnn