Home

Awesome

MXNet on the iPhone

This is an example project running a binarized neural network on iOS. It can detect single handwritten digits.

Requirements

Usage

Add the OpenCV framework to the xcode project and then build the app and try it on your phone!

What it does

Under the hood, we need the amalgamated MXNet source, the c predict headers, a trained and saved model from mxnet and set some additional environment variables in xcode.

The mxnet script amalgamate_mxnet.sh will amalgamate mxnet and perform the changes necessary for ios as described in the amalgamation readme file.

The xcode project already contains the preprocessor settings required to build mxnet for ios:

There are pre-trained models included in the projects.