Giter VIP home page Giter VIP logo

ios-projects-with-ml-models's Introduction

iOS-Projects-with-ML-Models-Logo

This challenge is that using machine learning model created from TensorFlow on iOS with Core ML or ML Kit(TensorFlow Lite).

‼️ PR for English advice always makes me happy ‼️

한국어 README

Machine Learning Framework for iOS

Flow of Model When Using Core ML

Flow of Model When Using Core ML

The overall flow is very similar for most ML frameworks. Each framework has its own compatible model format. We need to take the model created in TensorFlow and convert it into the appropriate format, for each mobile ML framework.

Once the compatible model is prepared, you can run the inference using the ML framework. Note that you must perform pre/postprocessing manually.

If you want more explanation, check this slide(Korean).

Flow of Model When Using Create ML

playground-createml-validation-001

Example Projects Using Various Machine Learning Models

DONE

  • Using built-in model with Core ML

  • Using built-in on-device model with ML Kit

  • Using custom model for Vision with Core ML and ML Kit

TODO

  • Object Detection with Core ML and ML Kit
  • Using built-in cloud model on ML Kit
    • Landmark recognition
  • Using custom model for NLP with Core ML and ML Kit
  • Using custom model for Audio with Core ML and ML Kit
    • Audio recognition
    • Speech recognition
    • TTS

1. MobileNet

Example project using MobileNet model.

  1. MobileNet-CoreML
  2. MobileNet-MLKit
MobileNet with Core ML MobileNet with ML Kit
DEMO-CoreML DEMO-MLKit

2. Pose Estimation

  1. PoseEstimation-CoreML
  2. PoseEstimation-MLKit
  3. dont-be-turtle-ios
  4. FingertipEstimation-CoreML

Modules Used

  • Measure.swift
  • PoseView.swift
  • HeatmapView.swift

2.1 Pose Estimation

PoseEstimation-CoreML PoseEstimation-MLKit
180705-poseestimation-demo.gif PoseEstimation-MLKit-hourglass
dont-be-turtle-ios
dont-be-turtle_demo

2.2 Fingertip Estimation

FingertipEstimation-CoreML KeypointAnnotation
fingertip_estimation_demo003 annotation_ios_app_demo001

3. Text Detection & Recognition

  1. WordRecognition-CoreML-MLKit(preparing...)
    : Detect character, find a word what I point and then recognize the word using Core ML and ML Kit.
  2. WordRecognition-MLKit(preparing...)
    : Just recognize words by using MLKit's text recognition function.
WordRecognition-CoreML-MLKit WordRecognition-MLKit
recognition a word demo (DEMO preparing...)

4. A Simple Classification Using Create ML and Core ML

  1. SimpleClassification-CreateML-CoreML
Create ML Core ML
IMG_0436 IMG_0436

Module of Performance Measurement

1. Inference Duration, Excution Duration and FPS Evaluation Module (preparing...)

This function is implemented(Measure.swift) in PoseEstimation-CoreML, but need to modulization.

2. Evalutation Project (preparing...)

2-1. Unit Test

Show output for each input? Drawing detail of result? Test for debugging?

  • Pose Estimation: draw dot each point and joint, print confidence each point.
  • ...

2-2. Bunch Test (planning...)

Analyze outputs from a bunch of inputs

  • average of inference time and fps
  • accumulate execution time, fps...?
  • rendering time
  • total execution time
  • ...

Author

See also

ios-projects-with-ml-models's People

Contributors

itsnamgyu avatar tucan9389 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.