Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Update README.md (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan23 authored Oct 8, 2019
1 parent 2e44d4c commit 842d0b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

This tool converts [ONNX](https://onnx.ai/) models to Apple Core ML format. To convert Core ML models to ONNX, use [ONNXMLTools](https://github.com/onnx/onnxmltools).

There's a comprehensive [Tutorial](https://github.com/onnx/tutorials/tree/master/examples/CoreML/ONNXLive/README.md) showing how to convert PyTorch style transfer models through ONNX to Core ML models and run them in an iOS app.
There's a comprehensive [Tutorial](https://github.com/onnx/tutorials/tree/master/examples/CoreML/ONNXLive/README.md) showing how to convert PyTorch style transfer models through ONNX to Core ML models and run them in an iOS app. You can find example for PyTorch model conversion [here](https://github.com/onnx/onnx-coreml/tree/master/examples).

## [New] Beta onnx-coreml converter with Core ML 3
## [New] release onnx-coreml converter with Core ML 3

To try out the new beta converter with Core ML 3 (>= iOS 13, >= macOS 15),
install coremltools 3.0b6 and coremltools 1.0b3
To try out the new onnx-coreml 1.0 converter with Core ML 3 (>= iOS 13, >= macOS 15),
install coremltools 3.0 and coremltools 1.0

```shell
pip install coremltools==3.0b6
pip install onnx-coreml==1.0b3
pip install coremltools==3.0
pip install onnx-coreml==1.0
```

In beta 3, the flag `disable_coreml_rank5_mapping` (which was part of beta 2) has been removed and instead replaced by
Since 1.0 beta 3, the flag `disable_coreml_rank5_mapping` (which was part of beta 2) has been removed and instead replaced by
the generic argument `target_ios` which can be used to target different versions of Core ML/iOS.
The argument `target_ios` takes a string specifying the target deployment iOS version e.g. '11.2', '12' and '13'.
By default, the converter uses the value of '12'.
Expand Down Expand Up @@ -237,6 +237,8 @@ Models from https://github.com/onnx/models that have been tested to work with th
- VGG
- ZFNet

### Examples
You can find examples for converting a model through ONNX -> CoreML [here](https://github.com/onnx/onnx-coreml/tree/master/examples)

### Operators
List of [ONNX operators supported in Core ML 2.0 via the converter](https://github.com/onnx/onnx-coreml/blob/4d8b1cc348e2d6a983a6d38bb6921b6b77b47e76/onnx_coreml/_operators.py#L1893)
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys


VERSION = '1.0b3'
VERSION = '1.0'

here = path.abspath(path.dirname(__file__))

Expand Down Expand Up @@ -35,7 +35,7 @@
author_email='onnx-coreml@apple.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
Expand All @@ -51,7 +51,7 @@
'onnx==1.5.0',
'typing>=3.6.4',
'typing-extensions>=3.6.2.1',
'coremltools==3.0b6',
'coremltools==3.0',
],
setup_requires=['pytest-runner'],
tests_require=[
Expand Down

0 comments on commit 842d0b1

Please sign in to comment.