Tool to convert MXNet models into Apple CoreML model format.
Project description
This tool helps convert MXNet models into Apple CoreML format which can then be run on Apple devices. Find more information here.
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 to convert the model though for running inferences on the converted model MacOS 10.13 or higher is needed (or for phones, iOS 11 or above).
Installation
To install:
pip install mxnet-coreml-converter
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for mxnet_coreml_converter-0.1.0a6-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e132a5df3830d3276382bc5720f4d2749f747e7b7ed93e8590422ac9e24d841 |
|
MD5 | f88a256aaaf60719e6876b7a569a3a28 |
|
BLAKE2b-256 | f566e3f04d50f74816647cc2b23d88d05a4ecbddd1804c053a31890468de8036 |