Home

Awesome

DepthPrediction-CoreML

platform-ios swift-version lisence

This project is Depth Prediction on iOS with Core ML.<br>If you are interested in iOS + Machine Learning, visit here you can see various DEMOs.<br>

GIF demo 1Screenshot 1Screenshot 2Screenshot 3Screenshot 4
<img src="https://user-images.githubusercontent.com/37643248/99881941-428dbd80-2c60-11eb-9c24-fdab5b110279.gif" width=240px><img src="resource/IMG_3623.PNG" width=240px><img src="resource/IMG_3626.PNG" width=240px><img src="resource/IMG_3627.PNG" width=240px><img src="resource/IMG_3629.PNG" width=240px>

How it works

When use Metal

image

Requirements

Model

Download

Download model from apple's model page.

Matadata

input nodeoutput nodesize
FCRN[1, 304, 228, 3]<br>name: image[1, 128, 160]<br>name: depthmap254.7 MB
FCRNFP16[1, 304, 228, 3]<br>name: image[1, 128, 160]<br>name: depthmap127.3 MB

Inference Time

DeviceInference TimeTotal Time(GPU)Total Time(CPU)
iPhone 12 Pro Max
iPhone 12 Pro
iPhone 12
iPhone 12 Mini
iPhone 11 Pro Max
iPhone 11 Pro134 ms134 ms149 ms
iPhone 11
iPhone SE(2nd)
iPhone XS Max146 ms155 ms
iPhone XS146 ms151 ms
iPhone XR148 ms154 ms
iPhone X624 ms640 ms
iPhone 8+621 ms634 ms
iPhone 8626 ms639 ms
iPhone 7+595 ms609 ms
iPhone 7612 ms624 ms
iPhone 6S+1038 ms1051 ms

See also