All Projects → Revo-Future → MobileNet-iOS

Revo-Future / MobileNet-iOS

Licence: other
MobileNet implementation on iOS

Programming Languages

swift
15916 projects
Metal
113 projects

MobileNet-iOS

Google's MobileNet on iOS. Specifically, mobileNet is implemented by MPSCNN which use the Metal to improve the CNN performence. MobileNet architecture comes from the paper MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications.

The mobileNet is trained by Caffe on Server, and then convert the weights to MPSCNN weight format. This part is finished by my colleague.

For ordinary convolution in MPSCNN, weight format is [outputChannel][kernelHeight][kernelWidth][inputChannel] For depthwise convolution, weight format is [kernelHeight][kernelWidth][featureChannels]

The trained mobileNet model is 16.9M, which is pretty small. And the inference time on iphone 6s plus is about 50ms, it's pretty fast. For iphone 7, it must be faster.

Requirements

Xcode 8.0

iOS 10.0+

Example

image

Notice

This project can't run on iOS simulator, as iOS simulator don't support metal.

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].