วันจันทร์ที่ 13 มีนาคม พ.ศ. 2560

Machine Learning Tensorflow Android App Demo

Machine Learning TensorFlow Android App Demo

What is TensorFlow?
TensorFlow is open source machine learning library from Google. Computation code is written in C++, but programmers can write their TensorFlow software in either C++ or Python and implemented for CPUs ,GPUs or both.


In November 2015, Google announced and open sourced TensorFlow, its latest and greatest machine learning library. This is a big deal for three reasons:
  1. Machine Learning expertise: Google is a dominant force in machine learning. Its prominence in search owes a lot to the strides it achieved in machine learning.
  2. Scalable : the announcement noted that TensorFlow was initially designed for internal use and that it’s already in production for some live product features.
  3. Ability to run on Mobile.
This last reason is the operating reason for this post since we’ll be focusing on Android. If you examine the tensorflow repo on GitHub, you’ll find a little tensorflow/examples/android directory. I’ll try to shed some light on the Android TensorFlow example and some of the things going on under the hood.



Install TensorFlow on your System ( PC or Notebook , Windows or mac )

It has many method to install

  • virtualenv
  • pip
  • Docker
  • installing from sources

We use pip method first.



Installing with native pip


Python
In order to install TensorFlow, your system must contain one of the following Python versions:

  • Python 2.7
  • Python 3.3+

Pip installs and manages software packages written in Python. If you intend to install with native pip, then one of the following flavors of pip must be installed on your system:
  • pip, for Python 2.7
  • pip3, for Python 3.n.
pip or pip3 was probably installed on your system when you installed Python. To determine whether pip or pip3 is actually installed on your system, issue one of the following commands:
$ pip -V  # for Python 2.7
$ pip3 -V # for Python 3.n 

We strongly recommend pip or pip3 version 8.1 or higher in order to install TensorFlow. If pip or pip3 8.1 or later is not installed, issue the following commands to install or upgrade:
$ sudo easy_install --upgrade pip
$ sudo easy_install --upgrade six 

Install Bazel
https://bazel.build/versions/master/docs/install.html


Building the Demo from Source

git clone --recurse-submodules https://github.com/tensorflow/tensorflow.git


Build the Android APK 
$ cd ~/tensorflow
$ bazel build //tensorflow/examples/android:tensorflow_demo

Install the APK to Android devices
$ adb install -r -g bazel-bin/tensorflow/examples/android/tensorflow_demo.apk
Reference



25 ความคิดเห็น:

  1. Ganga music If the bumps appear all over your body, they are probably hives. Insect bites, on the other hand, appear in clusters and on the arms on legs. Ganga bhakti

    ตอบลบ
  2. Thank you for discussing this very useful article. I heard something new from you. Keep blogging. android training in jalandhar

    ตอบลบ
  3. Amazing knowledge and I like to share this kind of information with my friends and hope they like it they why I do
    digital marketing courses in hyderabad with placement

    ตอบลบ
  4. https://ravivarma.in/how-to-buy-domains-for-cheap-price/

    ตอบลบ
  5. Master the core cognitive skills in Machine Learning technology by getting enrolled for the exclusive real-time based Machine Learning Training in Hyderabad program by AI Patasala. Become a successful Machine Learning expert today.
    Machine Learning Course with Placements in Hyderabad

    ตอบลบ
  6. Very good message. I came across your blog and wanted to tell you that I really enjoyed reading your articles.

    Best Ethical Hacking Institute in Bangalore

    ตอบลบ


  7. Canon Pixma MG2520 is one of the best software that will enhance your printer’s capabilities. You can easily download and use this dynamic software. We have provided you every procedure of downloading it on Mac, windows, through wireless connection and USB cable. From all of these different procedures, you can choose the best one at your convenience. The main aim of canon mg2520 printer is to help you through our best possible manner that’s why we have come up with this guide.


    ตอบลบ
  8. Very good message. I came across your blog and wanted to tell you that I really enjoyed reading your articles.
    Data Analytics Course in Bangalore

    ตอบลบ
  9. One of the most common causes of Quickbooks error code h202 is when the network firewall blocks the connection between the QuickBooks database server manager that is installed on the windows server that hosts your company files.


    ตอบลบ
  10. Serato DJ Crack needs no introduction. It is used by a large number of professional DJs and entertainment establishments worldwide.

    ตอบลบ
  11. Nice Blog.
    Quickbook Update Error 15106 Hey, this side Daniel and i am software reviewer and i am recently review the quickbook software and i founds some error and now but i am resolved this so i think i can share my process of solving error with you so you also face this error so read this amazing page.

    ตอบลบ
  12. The 2023 Isuzu MU-X shares the same tough chassis as the D-Max giving it a phenomenal towing capacity of 3500kg (braked). Housed in the body of a high-end ...

    ตอบลบ
  13. You finished certain solid focuses there. I did a pursuit regarding the matter and discovered almost all people will concur with your blog.

    ตอบลบ
  14. 360DigiTMG, the top-rated organisation among the most prestigious industries around the world, is an educational destination for those looking to pursue their dreams around the globe. The company is changing careers of many people through constant improvement, 360DigiTMG provides an outstanding learning experience and distinguishes itself from the pack. 360DigiTMG is a prominent global presence by offering world-class training. Its main office is in India and subsidiaries across Malaysia, USA, East Asia, Australia, Uk, Netherlands, and the Middle East.

    ตอบลบ
  15. Amazingly by and large very interesting post. I was looking for such an information and thoroughly enjoyed examining this one. Keep posting.
    An obligation of appreciation is all together for sharing.data analytics course in gwalior

    ตอบลบ
  16. I see some amazingly important and kept up to length of your strength searching for in your on the site
    data scientist training in malaysia

    ตอบลบ
  17. Get the best Data Science online course at the comfort of your home. Flexible timings, Best industry trainers, and meticulously crafted curriculum.data science training in kolkata

    ตอบลบ
  18. Explore what the best Data Science training institute is offering you. Learn advanced technologies from the best industry experts.

    ตอบลบ
  19. ความคิดเห็นนี้ถูกผู้เขียนลบ

    ตอบลบ
  20. ความคิดเห็นนี้ถูกผู้เขียนลบ

    ตอบลบ
  21. I truly adored visiting your post and this content was very unique. Thanks a lot for sharing this...
    Spousal Support in VA
    Spousal Support in Virginia

    ตอบลบ
  22. I found the tips and best practices shared in this article to be helpful for improving data science workflows. Best Data Science Training Institute In Chennai

    ตอบลบ
  23. ความคิดเห็นนี้ถูกผู้เขียนลบ

    ตอบลบ