keras2ncnn icon indicating copy to clipboard operation
keras2ncnn copied to clipboard

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

Open MrCary opened this issue 3 years ago • 2 comments

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 "

MrCary avatar Sep 10 '21 07:09 MrCary

See it, I will take a try.

MarsTechHAN avatar Sep 20 '21 01:09 MarsTechHAN

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

MarsTechHAN avatar Sep 20 '21 01:09 MarsTechHAN