- 전체
- 안드로이드 플랫폼
- 아두이노
- 라즈베리 파이
- 안드로이드 ADK
- Embedded HardWare
- Embedded FirmWare
- Embedded Platform
- Embedded SoftWare
- 임베디드 리눅스
- Hobby Electronics
- 임베디드기사 - 국가기술자격
- VHDL 디지털설계
- M2M_IoT_사물지능통신
- 아마추어 로봇
- EDA - Electronic CAD
- 로봇공학
- 국가기술자격 로봇 제작 개발 자격증
- IoT (임베디드 인터넷)
라즈베리 파이 Installing Latest Tensor flow and Keras on RASPBERRY PI
2019.11.12 15:25
Installing Latest Tensor flow and Keras on RASPBERRY PI
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
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
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
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.