Skip to main content

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. You can find more information about tool on our github page.


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).


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.


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 --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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page