• Stars
    star
    131
  • Rank 266,498 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The example of running Depth Prediction using Core ML

DepthPrediction-CoreML

platform-ios swift-version lisence

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

GIF demo 1 Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

How it works

When use Metal

image

Requirements

  • Xcode 10.2+
  • iOS 11.0+
  • Swift 5

Model

Download

Download model from apple's model page.

Matadata

input node output node size
FCRN [1, 304, 228, 3]
name: image
[1, 128, 160]
name: depthmap
254.7 MB
FCRNFP16 [1, 304, 228, 3]
name: image
[1, 128, 160]
name: depthmap
127.3 MB

Inference Time

Device Inference Time Total Time(GPU) Total Time(CPU)
iPhone 12 Pro Max โฒ โฒ โฒ
iPhone 12 Pro โฒ โฒ โฒ
iPhone 12 โฒ โฒ โฒ
iPhone 12 Mini โฒ โฒ โฒ
iPhone 11 Pro Max โฒ โฒ โฒ
iPhone 11 Pro 134 ms 134 ms 149 ms
iPhone 11 โฒ โฒ โฒ
iPhone SE(2nd) โฒ โฒ โฒ
iPhone XS Max 146 ms โฒ 155 ms
iPhone XS 146 ms โฒ 151 ms
iPhone XR 148 ms โฒ 154 ms
iPhone X 624 ms โฒ 640 ms
iPhone 8+ 621 ms โฒ 634 ms
iPhone 8 626 ms โฒ 639 ms
iPhone 7+ 595 ms โฒ 609 ms
iPhone 7 612 ms โฒ 624 ms
iPhone 6S+ 1038 ms โฒ 1051 ms

See also

More Repositories

1

awesome-ml-demos-with-ios

The challenge projects for Inferencing machine learning models on iOS
Python
1,133
star
2

PoseEstimation-CoreML

The example project of inferencing Pose Estimation using Core ML
Swift
664
star
3

SemanticSegmentation-CoreML

The example project of inferencing Semantic Segementation using Core ML
Swift
296
star
4

ObjectDetection-CoreML

An example running Object Detection using Core ML (YOLOv8, YOLOv5, YOLOv3, MobileNetV2+SSDLite)
Swift
253
star
5

tf2-mobile-2d-single-pose-estimation

๐Ÿ’ƒ Pose estimation for iOS and android using TensorFlow 2.0
Python
167
star
6

PoseEstimation-TFLiteSwift

The baseline project for inferencing various Pose Estimation tflite models with TFLiteSwift on iOS
Swift
144
star
7

TextRecognition-MLKit

Swift
85
star
8

TextDetection-CoreML

Swift
74
star
9

FingertipEstimation-CoreML

Detect fingertip by using machine learning for pose estimation
Swift
70
star
10

KeypointAnnotation

Swift
42
star
11

TFLiteSwift-Vision

Swift
36
star
12

ImageClassification-CoreML

The example of running Image Classification using Core ML
Swift
31
star
13

FaceDetection-MLKit

Swift
20
star
14

PoseEstimation-MLKit

The example of running Pose Estimation using ML Kit
Swift
17
star
15

SimpleClassification-CreateML-CoreML

Create ML๋กœ ๋‚˜๋งŒ์˜ Classifier ๋ชจ๋ธ์„ ๋งŒ๋“ค๊ณ  Core ML๋กœ ์•ฑ์—์„œ ์‚ฌ์šฉํ•ด๋ณด๋Š” End-to-End ์˜ˆ์ œ ํ”„๋กœ์ ํŠธ์ž…๋‹ˆ๋‹ค.
Swift
13
star
16

InstanceSegmentation-CoreML

Swift
11
star
17

MobileNet-MLKit

MLKit์„ ์‚ฌ์šฉํ•˜์—ฌ MobileNet.tflite๋ฅผ ์‹คํ–‰์‹œ์ผœ๋ณธ ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.
Swift
9
star
18

GyroMaze-STM32

์ž„๋ฒ ๋””๋“œ ์‹คํ—˜์—์„œ ํ…€ ํ”„๋กœ์ ํŠธ ๊ฒฐ๊ณผ๋ฌผ์ž…๋‹ˆ๋‹ค.
C
7
star
19

pytorch-Korean-NER

Python
5
star
20

HangeulClock-iOS

Objective-C
5
star
21

MNIST-TFLiteSwift

Swift
4
star
22

MyBookshelf-iOS

The assignment is to see code design, code accuracy, data structure, algorithms, and learning abilities, as well as the ability to implement your app.
Objective-C
4
star
23

excel-example-ios

libxlsxwriter(C๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ)๋ฅผ iOS์—์„œ ์‚ฌ์šฉํ•œ ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.
Swift
4
star
24

image-clustering-browser

Python
3
star
25

WordRecognition-CoreML-MLKit

Detect character, find a word what I point and then recognize the word using Core ML and ML Kit.
3
star
26

ZoomableScrollView

Simple Zoomable Scroll View inherited from UIScrollView
Swift
3
star
27

tc-stock-management-system

1
star
28

async-filtering-photo-album-ios

Swift
1
star
29

MLProblem-MLFramework-for-iOS-template-project

Swift
1
star
30

tucan9389.github.io

HTML
1
star
31

mnist-ml-to-mobile

Python
1
star