Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

TensorFlow installation tutorial,run Google Artificial Intelligence on RK3399

161

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
161

TensorFlow installation tutorial,run Google Artificial Intelligence on RK3399

Posted at 8/3/2017 17:56:13      View:7579 | Replies:2        Print      Only Author   [Copy Link] 1#
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:



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



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.




Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 8/4/2017 09:24:42        Only Author  2#
GOOD!
Reply

Use props Report

8

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
8
Posted at 12/31/2017 14:51:43        Only Author  3#
The download page can not found.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list