This release is a pre-release and may not be stable for production use.
This tool helps convert MXNet models into Apple CoreML format which can then be run on Apple devices. You can find more information about tool on our github page.
Prerequisites
This package can only be installed on MacOS X since it relies on Apple’s CoreML SDK. This tool can be run on MacOS 10.12 or higher though for running inferences on the converted model MacOS 10.13 or higher is needed (or for phones, iOS 11 or above).
Installation
The method for installing this tool follows the standard python package installation steps. Once you have set up a python environment, run:
pip install mxnet-coreml-converter
The package documentation contains more details on how to use coremltools.
Dependencies
This tool has the following dependencies: * pyyaml (3.12+) * mxnet (0.10.0+) * coremltools (0.5.1+)
Sample Usage
In order to convert, say a Squeezenet model, with labels from synset.txt, execute this
mxnet_coreml_converter.py --model-prefix='squeezenet_v1.1' \
--epoch=0 --input-shape='{"data":"3,227,227"}' \
--mode=classifier --pre-processing-arguments='{"image_input_names":"data"}' \
--class-labels synset.txt --output-file="squeezenetv11.mlmodel"
More Information
Metadata
Release files for mxnet-coreml-converter 0.1.0a7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mxnet_coreml_converter-0.1.0a7-cp27-cp27m-macosx_10_7_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | macOS 10.7+ x86-64 | Details |
Release files / mxnet_coreml_converter-0.1.0a7-cp27-cp27m-macosx_10_7_x86_64.whl
| Download URL | mxnet_coreml_converter-0.1.0a7-cp27-cp27m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 17.3 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
772abcb614d761e2d40f0dded25e994e739e4b172da97a118fcf1abc9b9c0a6f
|
|
BLAKE2b-256 checksum How to use checksums |
76f4eeeae0923ae68dd7cd6b3be5b5096fe8e8ecb058c59cec0af5604d5e98ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |