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

Convert CoreML to Tensorflow #316

Closed
Vortec4800 opened this issue Jun 30, 2019 · 3 comments
Closed

Convert CoreML to Tensorflow #316

Vortec4800 opened this issue Jun 30, 2019 · 3 comments

Comments

@Vortec4800
Copy link

I know this library is primarily designed to go in the other direction, but I have a trained CoreML model that I need to run in the cloud. Is there a way to configure this tool to take my CoreML model and covert it to a TF model?

@aseemw
Copy link
Collaborator

aseemw commented Jun 30, 2019

This repo does not go in the other direction.
However, you could try using onnxmltools to go from CoreML to ONNX format.
Then, that can be run using onnx runtime or converted to TF (https://github.com/onnx/onnx-tensorflow)

@Vortec4800
Copy link
Author

Cool thanks for the tip, I'll give that a try and see how it works.

@fodeguirassy
Copy link

For anyone landed here, the above suggested workaround did not work for me.
I ended up stucked in the following configuration :

  • onnxmltools does not support coremltools > 3.1
  • to install coremltools <= 3.1, you need python2
  • onnxtmltools cannot be used with python2

See the attached screen capture for the detailed error trace

Screenshot 2021-07-27 at 16 46 42

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

3 participants