101

GitHub - tf-coreml/tf-coreml: TensorFlow to CoreML Converter

 7 years ago
source link: https://github.com/tf-coreml/tf-coreml
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK