News for hackers. Stuff that matters.
Re:Apple Create ML: Creating an Image Classifier Model by seek3r on Monday November 30, 2020 @10:02AM (#25254417)
I did a quick Google search (so maybe I’m missing something) but there is no official support for converting Core ML — which is the foundation for Create ML — models to Tensorflow or PyTorch. You need to look for third-party libraries. Although there exist libraries to convert Tensorflow models to Core ML.
Re:Apple Create ML: Creating an Image Classifier Model by yeldarb on Monday November 30, 2020 @10:20AM (#25254637)
You can convert CoreML models to ONNX which is widely supported cross-platform for doing inference. https://github.com/onnx/onnxmltools
Re:Apple Create ML: Creating an Image Classifier Model by therealmarv on Monday November 30, 2020 @02:16PM (#25257656)
sorry my lack of understanding: So you think an image classifier trained on Create ML can be exported to another framework of not?
Re:Apple Create ML: Creating an Image Classifier Model by yeldarb on Monday November 30, 2020 @03:17PM (#25258402)
It’s not entirely clear to me exactly what was meant by the grandparent post by converting to PyTorch or Tensorflow.

There are two discrete concepts: training and inference. You can think of training a bit like the source code and inference a bit like running the compiled binary. The different frameworks have their own serialization formats for their model weights.

If the goal is to do inference using CoreML weights trained in CreateML on non-Apple platforms (eg on a server or android device), converting them to ONNX is a way to do that.

You probably won’t be able to pick up training on another framework though.