Installing Latest Tensor flow and Keras on RASPBERRY PI

 
From: www.raspberrypi.org

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Now TensorFlow 1.9 Officially Supports the Raspberry Pi

Please check this link

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -

Intro

If you want to run a Neural network model on Embedded system, RPi is one of the best option available.

Installing latest version….. then you have to surf the internet, follow different posts

This post just simplifies the steps to install Tensorflow and Keras,

Hardware specs : https://www.raspberrypi.org/products/raspberry-pi-3-model-b/


Raspbian OS

Start by installing latest version of Raspbian os form here :

RASPBIAN STRETCH . just use Etcher for writing ISO to tf card

Python

Stretch comes pre-installed with python version 3.5 and 2.7

for “2018–04–18-raspbian-stretch” the version are 3.5.2 and 2.7.13, (which i used)

Tensorflow (1.8.0)

i used .whl provided by lhelontra in tensorflow-on-arm

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

Raspberry pi 2/3

python version 3.5wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whlsudo pip3 install tensorflow-1.8.0-cp35-none-linux_armv7l.whlsudo pip3 uninstall mock
sudo pip3 install mockpython version 2.7wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp27-none-linux_armv7l.whlsudo pip install tensorflow-1.8.0-cp27-none-linux_armv7l.whlsudo pip uninstall mock
sudo pip install mock

Raspberry pi one/zero with openblas

python version 3.5wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv6l.whlsudo pip3 install tensorflow-1.8.0-cp35-none-linux_armv6l.whlsudo pip3 uninstall mock
sudo pip3 install mockpython version 2.7wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp27-none-linux_armv6l.whlsudo pip install tensorflow-1.8.0-cp27-none-linux_armv6l.whlsudo pip uninstall mock
sudo pip install mock

check tensorflow-on-arm if you want older versions

Keras

sudo apt-get install python3-numpy
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install python3-dev 
sudo apt-get install libatlas-base-dev
sudo apt-get install gfortran
sudo apt-get install python3-setuptools
sudo apt-get install python3-scipysudo apt-get update
sudo apt-get install python3-h5pysudo pip3 install keras 

Note: remember to change pip3 with just pip and python3 with python for 2.7 version

Conclusion

Test your installation by

Tensorflow

python -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 2
python3 -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 3

Keras

python -c 'import keras; print(keras.__version__)'# python 2
python3 -c 'import keras; print(keras.__version__)'  # for Python 3

That’s it, enjoy

 

[출처] https://medium.com/@abhizcc/installing-latest-tensor-flow-and-keras-on-raspberry-pi-aac7dbf95f2

 

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
23 [아두이노 arduino] Run a Virtual Factory with Arduino! : 아두이노로 가상 공장을 운영해보세요! file 졸리운_곰 2024.12.28 116
22 [아두이노 arduino] Arduino – base64 encode and decode file 졸리운_곰 2024.03.11 207
21 [아두이노 arduino] Simple encryption using XOR operator 졸리운_곰 2024.03.11 214
20 [아두이노 arduino] 아두이노 json 암호화: Crypt json content file 졸리운_곰 2024.03.11 218
19 C#으로 아두이노의 LED 제어하기 - C# 프로그래밍 file 졸리운_곰 2024.02.25 269
18 Top 20 Arduino-based Health Projects file 졸리운_곰 2020.06.07 252
17 Get started with machine learning on Arduino file 졸리운_곰 2019.11.12 270
16 아두이노 운영체제 : 4 Operating Systems for the Arduino file 졸리운_곰 2019.11.04 315
15 아두이노 프로토쉴드(ProtoShield) 조립 가이드 file 졸리운_곰 2019.10.31 307
14 아두이노 우노 를 이용한 부트로더 굽기 ATMEGA328 file 졸리운_곰 2018.01.04 475
13 아두이노 부트로더 굽기(Arduino boorloader burning) file 졸리운_곰 2018.01.04 526
12 아두이노를 이용한 미니 웹 서버 만들기 - LED 제어 file 졸리운_곰 2017.08.03 494
11 아두이노를 이용한 미니 웹 서버 만들기 - 예제 분석 file 졸리운_곰 2017.08.03 596
10 아두이노를 이용한 미니 웹 서버 만들기 - 시작하기 file 졸리운_곰 2017.08.03 431
9 CSEduino : 아두이노 호환 : PCB 주문하여 납땜 조립가능 소형 보드 file 졸리운_곰 2017.08.02 441
8 회로 시뮬레이션 및 아두이노 시뮬레이터 Autodesk의 123D Circuits file 졸리운_곰 2017.06.10 794
7 브레드보드 위에 아두이노 만들기- Arduino Breadboard DIY file 졸리운_곰 2016.11.20 671
6 아두이노 UNO 회로도, Arduino UNO Schemetic file 졸리운_곰 2015.07.04 2222
5 Intel® Edison Boards, rcad* Schematic Design File file 졸리운_곰 2015.07.04 312
4 아두이노 부트로더 굽기 2 file 졸리운_곰 2015.07.04 670
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED