Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tensor flow for Android

Karumi
December 01, 2017

Tensor flow for Android

TensorFlow is the most popular framework for Machine Learning, and we can use it in Android. We explain how TensorFlow works and show an example.

Karumi

December 01, 2017
Tweet

More Decks by Karumi

Other Decks in Programming

Transcript

  1. Testing for android & iOS. Trainings Architecture, Patterns and principles

    for Android & iOS. Mastering Git. Advanced mobile development. Testing for android & iOS. Architecture, Patterns and principles for Android & iOS. Companies For Everybody
  2. Adam Tornhill “Of course it is happening inside your mobile,

    Harry,but why on earth should that mean that it is not real?” J.K Rowling and Jorge Barroso, Harry Potter and the deathly Hallows
  3. The Sorting Hat is one of the cleverest enchanted objects

    most witches and wizards will ever meet. It literally contains the intelligence of the four founders.
  4. x1 x2 w1 w2 b1 y = x1*w1 + x2*w2

    + b1 Activation function TRY sigmoid functions instead lineal
  5. b1

  6. classifier = TensorFlowImageClassifier.create( getAssets(), MODEL_FILE, LABEL_FILE, INPUT_SIZE, IMAGE_MEAN, IMAGE_STD, INPUT_NAME,

    OUTPUT_NAME); private static final float IMAGE_STD = 128; protected static final int INPUT_SIZE = 299; protected static final int IMAGE_MEAN = 128; private static final String MODEL_FILE = "file:/// android_asset/retrained_graph_optimized.pb"; private static final String LABEL_FILE = "file:/// android_asset/retrained_labels.txt";
  7. Bibliography They’re the cracks! Peter Warden. Tensorflow mobile for Poets

    2016 Hello word with Tensorflow Introduction to Tensorflow. Gema Parreño medium 2016 Pottermore. JKRowling https://rubenlopezg.wordpress.com/2014/05/07/que-es-y-como- funciona-deep-learning/ https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/ https://cloud.google.com/blog/big-data/2016/07/understanding- neural-networks-with-tensorflow-playground http://nilhcem.com/android/custom-tensorflow-classifier http://www.asimovinstitute.org/neural-network-zoo