https://github.com/driedler/tflite_runtime_rpi0w
tflite_runtime Python wheel for Raspberry Pi Zero
https://github.com/driedler/tflite_runtime_rpi0w
python python3 raspberry-pi raspberry-pi-zero raspberry-pi-zero-w raspberrypi tensorflow tensorflow-lite tflite-runtime
Last synced: about 2 months ago
JSON representation
tflite_runtime Python wheel for Raspberry Pi Zero
- Host: GitHub
- URL: https://github.com/driedler/tflite_runtime_rpi0w
- Owner: driedler
- Created: 2021-06-08T04:46:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-29T03:40:32.000Z (about 5 years ago)
- Last Synced: 2025-02-15T15:49:44.982Z (over 1 year ago)
- Topics: python, python3, raspberry-pi, raspberry-pi-zero, raspberry-pi-zero-w, raspberrypi, tensorflow, tensorflow-lite, tflite-runtime
- Homepage:
- Size: 2.49 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tflite_runtime Python wheel for Raspberry PI Zero W
=========================================================
Taken from:
https://www.tensorflow.org/lite/guide/build_cmake_pip
__NOTE:__ See [tflite_micro_runtime](https://github.com/driedler/tflite_micro_runtime) which runs __8x__ faster on the RPI0.
# Install Docker for WSL (if using Windows)
See https://docs.docker.com/docker-for-windows/wsl/
# Build Python Wheel
```
# From Linux terminal (or WSL)
git clone --branch v2.5.0 https://github.com/tensorflow/tensorflow.git
cd tensorflow
sudo ./tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh rpi0
```
After the above commands run, the built wheel should be found at (in your Linux or WSL terminal):
```
./tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.7/dist/
```
# Install
To install, issue the following command on your RPI
```
sudo pip3 install https://github.com/driedler/tflite_runtime_rpi0w/releases/download/2.5.0/tflite_runtime-2.5.0-cp37-cp37m-linux_armv6l.whl
```