Reputation: 802
I read that it is possible to convert a TensorFlow Model (.pb) file to CoreML (.mlmodel) to run it on iOS platforms. But I have some .mlmodel files that I want to run on tensorflow. So I want to know if there is any way I could convert them to .pb files or any other way I could use them in Tensorflow.
Upvotes: 2
Views: 4219
Reputation: 86
Here try this https://github.com/onnx/onnxmltools it supports CoreML conversion
Upvotes: 1
Reputation: 7892
The good news: Yes, you can do this.
The bad news: You'll have to do it by hand. There are no tools for doing this automatically.
The easiest solution is to define the model in TensorFlow, then copy the weights from the Core ML model into the TF model.
Upvotes: 1