Firefly Open Source Community

Title: TensorFlow installation tutorial,run Google Artificial Intelligence on RK3399 [Print This Page]

Author: F_Developer_X    Time: 8/3/2017 17:56
Title: TensorFlow installation tutorial,run Google Artificial Intelligence on RK3399
Last edited by F_Developer_X In 8/3/2017 18:03 Editor

From AlphaGo victory over Lee Shishi, Google artificial intelligence has attracted much attention. Artificial intelligence seems to be far from us, depth learning algorithm looks very complicated.But in fact, look at your phone on the voice assistant, the camera's face recognition, today's headlines to help you screen out the news automatically, as well as the music software "Daily Recommended" and so on. All kinds of AI has already entered all aspects of our lives. It can be said that this is an era of AI.


In fact, as early as the end of last year, Google has open-source the depth learning system TensorFlow which is used for making AlphaGo, I believe many people are very interested in this powerful machine learning system.

To install TensorFlow on Firefly-RK3399. If you want to play with artificial intelligence, you can follow the tutorial to try.





1. Install Ubuntu System


Flash the ubuntu system image to Firefly-RK3399. I upgraded the Ubuntu single system: Firefly-RK3399_xubuntu1604_201707041527.img, you can go to the official website to download it:
http://en.t-firefly.com/en/firenow/Firefly_RK3399/download/



Note, if your Firefly-RK3399 is the default dual system firmware, you can switch directly to the Ubuntu system and skip this step:

http://wiki.t-firefly.com/index.php/Firefly-RK3399/Starter_guide/en


update successfully.

2. Install pip3


After entering the system, use ALT + CTRL + T to bring up the terminal and enter
  1. sudo apt install python3-pip
Copy the code



3. Use git to download tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl

Install git
  1. sudo apt-get install git-core
Copy the code

Download tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl
  1. git clone https://github.com/JohnnyChan8/TensorFlow4FireflyRK3399.git
Copy the code

4. Use pip3 to install Tensorflow
  1. cd TensorFlow4FireflyRK3399
Copy the code
  1. pip3 install tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl
Copy the code

Install successfully




5. Test Tensorflow
After completing the above steps, TensorFlow has been installed to Firefly-RK3399, and now through a simple routine to test the program input
  1. python3
Copy the code
  1. import tensorflow as tf
  2. hello = tf.constant('Hello world!')
  3. sess = tf.Session()
  4. print(sess.run(hello))
Copy the code

This time will print
b'Hello world!'




Summary

TensorFlow as a machine learning tool has been open source for a year, with Google's influence TensorFlow has become a popular open source machine learning, in just a year or so, in GitHub has produced a large number of cases based on TensorFlow, such as images Recognition, natural language processing, small AlphaGo, machine writing music, and so interesting items.
Artificial intelligence is really not far away from us, open source TensorFlow let us have the opportunity to create our own artificial intelligence.





Author: isle    Time: 8/4/2017 09:24
GOOD!
Author: auroua    Time: 12/31/2017 14:51
The download page can not found.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1