tfcoreml

TensorFlow to Core ML converter


Keywords
Converter, TensorFlow, Core, ML
License
Apache-2.0
Install
pip install tfcoreml==0.4.0b1

Documentation

Build Status PyPI Release Python Versions

Convert from Tensorflow to CoreML

coremltools (Recommended approach)

For converting TensorFlow models to CoreML format, the recommended approach is to use TensorFlow converter available through new unified conversion API, introduced incoremltools 4.0 python package. Please read the coremltools documentation on Tensorflow conversion for example usage.

To install coremltools package, please follow these instructions in the coremltools documentation.

tfcoreml

tfcoreml package is no longer maintained.

Conversion API tfcoreml.convert should only be used if all of the following conditions are met:

  1. Primary deployment target is iOS 12 or earlier.
  2. Source model is a TensorFlow 1 graph_def object serialized as frozen protobuf format (".pb")

To install tfcoreml, please run:

pip install --upgrade tfcoreml

Please read this usage section which illustrates how to convert models using tfcoreml.

For access to new features, bug fixes, community support and requests, please use coremltools github repository.

License

Apache License 2.0