Skip to content

Commit c9dd17a

Browse files
committed
v2.9.0
1 parent 9c427a7 commit c9dd17a

9 files changed

+75
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp310-none-linux_aarch64.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp310-none-linux_armv7l.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp37-none-linux_aarch64.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp37-none-linux_armv7l.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp38-none-linux_aarch64.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp38-none-linux_armv7l.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp39-none-linux_aarch64.whl
4+
5+
echo Download finished.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp39-none-linux_armv7l.whl
4+
5+
echo Download finished.

README.md

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,27 @@ A repository that shares tuning results of trained models generated by Tensorflo
4242
|RaspberryPi3/4|Ubuntu 20.04|Focal|aarch64 / armv8|3.8|64bit|
4343
|RaspberryPi3/4|Ubuntu 21.04/Debian/RaspberryPiOS|Hirsute/Bullseye|armhf / armv7l|3.9|32bit|
4444
|RaspberryPi3/4|Ubuntu 21.04/Debian/RaspberryPiOS|Hirsute/Bullseye|aarch64 / armv8|3.9|64bit|
45+
|RaspberryPi3/4|Ubuntu 22.04|Jammy|armhf / armv7l|3.10|32bit|
46+
|RaspberryPi3/4|Ubuntu 22.04|Jammy|aarch64 / armv8|3.10|64bit|
4547

4648
## Usage
4749
**Python3.7 - Buster**
4850
```bash
4951
$ sudo apt install -y \
5052
swig libjpeg-dev zlib1g-dev python3-dev \
5153
unzip wget python3-pip curl git cmake make
52-
$ sudo pip3 install numpy==1.22.1
53-
$ curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0-rc0/tflite_runtime-2.9.0rc0-cp37-none-linux_armv7l.whl
54-
$ sudo pip3 install --upgrade tflite_runtime-2.9.0rc0-cp37-none-linux_armv7l.whl
54+
$ sudo pip3 install numpy==1.22.3
55+
$ curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp37-none-linux_armv7l.whl
56+
$ sudo pip3 install --upgrade tflite_runtime-2.9.0-cp37-none-linux_armv7l.whl
5557
```
5658
**Python3.9 - Bullseye**
5759
```bash
5860
$ sudo apt install -y \
5961
swig libjpeg-dev zlib1g-dev python3-dev \
6062
unzip wget python3-pip curl git cmake make
61-
$ sudo pip3 install numpy==1.22.1
62-
$ curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0-rc0/tflite_runtime-2.9.0rc0-cp39-none-linux_aarch64.whl
63-
$ sudo pip3 install --upgrade tflite_runtime-2.9.0rc0-cp39-none-linux_aarch64.whl
63+
$ sudo pip3 install numpy==1.22.3
64+
$ curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp39-none-linux_aarch64.whl
65+
$ sudo pip3 install --upgrade tflite_runtime-2.9.0-cp39-none-linux_aarch64.whl
6466
```
6567

6668
## Note
@@ -87,7 +89,7 @@ make BASE_IMAGE=ubuntu:18.04 PYTHON=python3 TENSORFLOW_TARGET=rpi BUILD_DEB=y do
8789
### **2. Tensorflow v2.3.0 version or later**
8890
- git clone
8991
```bash
90-
git clone -b v2.9.0-rc0 https://github.com/tensorflow/tensorflow.git
92+
git clone -b v2.9.0 https://github.com/tensorflow/tensorflow.git
9193
cd tensorflow
9294
```
9395
- Apply customization to add custom operations for MediaPipe. (max_pool_argmax, max_unpooling, transpose_conv_bias, TransformLandmarks, TransformTensorBilinear, Landmarks2TransformMatrix)
@@ -101,7 +103,7 @@ https://github.com/tensorflow/tensorflow/raw/v2.8.0/tensorflow/tools/ci_build/Do
101103
curl -L -o tensorflow/tools/ci_build/Dockerfile.pi-python39 \
102104
https://github.com/tensorflow/tensorflow/raw/v2.8.0/tensorflow/tools/ci_build/Dockerfile.pi-python39
103105
104-
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0-rc0/mediapipe_customop_patch.zip
106+
curl -OL https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/mediapipe_customop_patch.zip
105107
unzip -d mediapipe_customop_patch mediapipe_customop_patch.zip
106108
git apply mediapipe_customop_patch/*
107109
```
@@ -168,14 +170,15 @@ esac
168170
```
169171
- Build
170172
```bash
173+
### Common task
171174
sed -i -e 's/FROM ubuntu:16.04/FROM ubuntu:18.04/g' tensorflow/tools/ci_build/Dockerfile.pi-python37
172175
sed -i -e 's/FROM ubuntu:16.04/FROM ubuntu:18.04/g' tensorflow/tools/ci_build/Dockerfile.pi-python38
173176
sed -i -e 's/FROM ubuntu:16.04/FROM ubuntu:18.04/g' tensorflow/tools/ci_build/Dockerfile.pi-python39
174177
sed -i '5a ENV DEBIAN_FRONTEND=noninteractive' tensorflow/tools/ci_build/Dockerfile.pi-python39
175178
sed -i '30a apt-get update && apt-get install -y dirmngr' tensorflow/tools/ci_build/install/install_deb_packages.sh
176179
sed -i -e 's/xenial/bionic/g' tensorflow/tools/ci_build/install/install_pi_python3x_toolchain.sh
177180

178-
### Python 3.7
181+
### Python 3.7 - TensorFlow v2.10.0 or later will not build.
179182
sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.7 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.7" \
180183
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 \
181184
tensorflow/lite/tools/pip_package/build_pip_package_with_bazel.sh aarch64
@@ -195,7 +198,7 @@ sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.8 -e CROSSTOOL_PYTHON_IN
195198

196199
### Python 3.9
197200
sed -i '19a sudo pip3 install setuptools==60.7.0' tensorflow/tools/ci_build/install/install_auditwheel.sh
198-
sed -i '20a sudo pip3 install numpy==1.22.1' tensorflow/tools/ci_build/install/install_auditwheel.sh
201+
sed -i '20a sudo pip3 install numpy==1.22.3' tensorflow/tools/ci_build/install/install_auditwheel.sh
199202

200203
sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.9 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.9" \
201204
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON39 \
@@ -204,6 +207,28 @@ sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.9 -e CROSSTOOL_PYTHON_IN
204207
sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.9 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.9" \
205208
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON39 \
206209
tensorflow/lite/tools/pip_package/build_pip_package_with_bazel.sh armhf
210+
211+
### Python 3.10
212+
#### aarch64
213+
cp tensorflow/tools/ci_build/Dockerfile.pi-python39 tensorflow/tools/ci_build/Dockerfile.pi-python310
214+
sed -i -e 's/3.9/3.10/g' tensorflow/tools/ci_build/Dockerfile.pi-python310
215+
sed -i '19a sudo pip3 install setuptools==60.7.0' tensorflow/tools/ci_build/install/install_auditwheel.sh
216+
sed -i '20a sudo pip3 install numpy==1.22.3' tensorflow/tools/ci_build/install/install_auditwheel.sh
217+
218+
sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.10 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.10" \
219+
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON310 \
220+
tensorflow/lite/tools/pip_package/build_pip_package_with_bazel.sh aarch64
221+
222+
#### armhf
223+
cp tensorflow/tools/ci_build/Dockerfile.pi-python39 tensorflow/tools/ci_build/Dockerfile.pi-python310
224+
sed -i -e 's/3.9/3.10/g' tensorflow/tools/ci_build/Dockerfile.pi-python310
225+
sed -i '19a sudo pip3 install setuptools==60.7.0' tensorflow/tools/ci_build/install/install_auditwheel.sh
226+
sed -i '20a sudo pip3 install numpy==1.22.3' tensorflow/tools/ci_build/install/install_auditwheel.sh
227+
sed -i -e 's/FROM ubuntu:18.04/FROM ubuntu:20.04/g' tensorflow/tools/ci_build/Dockerfile.pi-python310
228+
229+
sudo CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3.10 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.10" \
230+
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON310 \
231+
tensorflow/lite/tools/pip_package/build_pip_package_with_bazel.sh armhf
207232
```
208233
## Operation check 【Classification】
209234
**Sample of MultiThread x4 by Tensorflow Lite [MobileNetV1 / 75ms]**

0 commit comments

Comments
 (0)