All Projects → EliotAndres → tensorflow-2-run-on-mobile-devices-ios-android-browser

EliotAndres / tensorflow-2-run-on-mobile-devices-ios-android-browser

Licence: MIT license
Tutorial to run TensorFlow 2 on mobile devices: Android, iOS and Browser

Programming Languages

swift
15916 projects
java
68154 projects - #9 most used programming language
Jupyter Notebook
11667 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Starlark
911 projects

Run TensorFlow 2 on any device

header

This project walks you through the process of creating an emotion recognition app on Android, iOS and in the browser:

  • Load data and train model
  • Export as SavedModel
  • Run on Android using TensorFlow Lite
  • Run on iOS using Core ML
  • Run in the browser using TensorFlow.js

Demo

header

A demo for the browser version is available here

Running in the browser

Folder: tfjs

Install yarn and run:

cd tfjs
yarn
yarn watch

Running on iOS

Folder: coreml_ios You must have Xcode and Cocoa Pods installed as well as a mac computer.

cd coreml_ios/app
pod install
open Core\ ML\ Demo.xcworkspace

Running on Android

It is recommended to have Android Studio installed. Import the project and run the app.

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].