Search code examples
ubuntukerascoreml

Convert Keras model to CoreML on Ubuntu


Is it possible to convert Keras model to Apple's CoreML on Ubuntu?

Is OSX required to run the scripts in the page Converting Trained Models to Core ML


Solution

  • You can absolutely install coremltools 0.4.0 on Linux Ubuntu 16.04 (I am using "Ubuntu 16.04.2 LTS"). I have just ran my convert.py script which proves it is possible with Keras using TF backend.

    Make sure that you have:

    1. using python 2.7
    2. have updated pip to 9.0.1
    3. have activated your virualenv (if you are using)