-
Notifications
You must be signed in to change notification settings - Fork 253
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
Error trying to convert model to CoreML #69
Comments
It's probably the coremltools version (I think I used version 2.0 for this or perhaps even 1.0), but the error is that your model does not have an input named |
@hollance thanks for your answer! I'll try with those coremltools versions. Could you also tell me which h5py version you used? I think the problem could be when exporting from Darknet to Keras. The h5 model looks like this in Netron: So maybe the first transformation is messing up the input/output names? |
Just rename the input in the code from |
@hollance, I just managed to execute CoreML.py succesfuly with this packages versions without modifying any code:
From Darknet to Keras everything works as long as yo use Keras 1.2.2 and Tensorflow 1.x. Maybe it would be a good idea to update scripts to new versions, specially coreml.py because Python2.7 has no longer support. Amazing work with this repo! |
Hi, first of all, thanks for you amazing.
I'm facing an error trying to convert tiny-yolo to CoreML suing the procedures explained in the repo. I manage to get the .h5 representation but when I try to export it to CoreML I get this error:
Could it be due to package versions? I have a virtual Python 3 environment for the Darknet -> Keras transformation and another Python 2.7 environment for the Keras -> CoreML transformation. The only pinned version is Keras but I suppose tensorflow has to be 1.x version. Actually, my packages versions are:
The text was updated successfully, but these errors were encountered: