https://github.com/tf-coreml/tf-coreml
TensorFlow to CoreML Converter
https://github.com/tf-coreml/tf-coreml
Last synced: about 1 month ago
JSON representation
TensorFlow to CoreML Converter
- Host: GitHub
- URL: https://github.com/tf-coreml/tf-coreml
- Owner: tf-coreml
- License: apache-2.0
- Created: 2017-10-11T19:57:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T16:48:19.000Z (over 5 years ago)
- Last Synced: 2025-08-31T14:38:53.882Z (3 months ago)
- Language: Python
- Size: 625 KB
- Stars: 1,330
- Watchers: 65
- Forks: 166
- Open Issues: 65
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-machine-learning - tf-coreml
- iOS_ML - TensorFlow
README
[](#)
[](#)
[](#)
Convert from Tensorflow to CoreML
=================================
[coremltools](https://github.com/apple/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 in`coremltools 4.0` python package.
Please read the coremltools documentation on [Tensorflow conversion](https://coremltools.readme.io/docs/tensorflow-conversion) for example usage.
To install coremltools package, please follow [these instructions](https://coremltools.readme.io/docs/installation) 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:
```shell
pip install --upgrade tfcoreml
```
Please read [this usage section](./Usage.md) which illustrates how to convert models using `tfcoreml`.
For access to new features, bug fixes, community support and requests, please use [coremltools](https://github.com/apple/coremltools) github repository.
## License
[Apache License 2.0](LICENSE)