Skip to content

Revo-Future/MobileNet-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

MobileNet implementation on iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published