TensorFlow for Mobile Developers

TensorFlow for Mobile Developers

7d67eb78fab223823acad6714cd2d3ca?s=128

Enrique López Mañas

November 13, 2017
Tweet

Transcript

  1. 6.

    Buzzwords classification Artificial intelligence Machine Learning The science of making

    machines smarts Building machines that can learn Neural Networks One of the many different algorithms in Machine Learning
  2. 17.

    TensorFlow You can train: - Mac / Windows - GPU

    Server - GPU/TPU on Cloud Prediction: - Android - iOS - Raspberry
  3. 40.

    Building with Android Studio Uses Bazel to build Set Bazel

    binary location in /tensorflow/examples/ android/build.gradle Add project in tensorflor/examples/android folder to Android Studio
  4. 41.

    Building with Android Studio Installing Bazel first: Download from https://github.com/bazelbuild/bazel/releases

    Install instructions in https://docs.bazel.build/versions/master/install.html
  5. 42.

    Building with Android Studio Download Android SDK (23) Download Android

    NDK (12b)
 
 (recommend it with Android SDK Manager)
  6. 44.

    Building with Android Studio Run Bazel bazel build -c opt

    //tensorflow/examples/ android:tensorflow_demo
  7. 46.

    Building with Android Studio OR… TensorFlow AAR from JCenter YUV

    -> RGB less efficient Object tracking not available
  8. 48.

    TF Classify Uses Google Inception (v3) to label images Model

    easy to swap No “person label” Volume button up for statistics
  9. 51.
  10. 52.

    TF Detect - Draw bounding boxes around people - Useful

    to count objects - No training yet
  11. 53.
  12. 54.

    TF Style - Real time style transfer algorithm - Pick/mix

    different styles - Can train Magenta models
  13. 55.
  14. 56.

    TensorFlow Written in C++ Android uses Kotlin/Java?
 
 HowTo? Android

    inference Library https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/android
  15. 57.

    Building for iOS Install requirements: - Xcode 8 - Command

    line tools (xcode-select install) - brew install automake - brew install lib tool - tensorflow/contrib/makefile_build_all_ios.sh (takes 20 minutes)
  16. 65.