adding tflite bin wheel

This commit is contained in:
Patrick McGuire
2021-10-13 15:33:02 -04:00
parent 781cddcc9e
commit 80ee8990f2
+9 -7
View File
@@ -49,13 +49,15 @@ install_birdnet() {
cd ~/BirdNET-Pi || exit 1 cd ~/BirdNET-Pi || exit 1
echo "Upgrading pip, wheel, and setuptools" echo "Upgrading pip, wheel, and setuptools"
sudo pip3 install --upgrade pip wheel setuptools sudo pip3 install --upgrade pip wheel setuptools
echo "Fetching the TFLite pre-built binaries" if [ ! -f $(dirname ${my_dir})/tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl ];then
TFLITE_URL="https://drive.google.com/uc?export=download&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA" echo "Fetching the TFLite pre-built binaries"
curl -c /tmp/cookie ${TFLITE_URL} TFLITE_URL="https://drive.google.com/uc?export=download&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA"
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)" curl -c /tmp/cookie ${TFLITE_URL}
TF_COOKIE="https://drive.google.com/uc?export=download&confirm=${CODE}&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA" CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
curl -Lb /tmp/cookie ${TF_COOKIE} -o tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl TF_COOKIE="https://drive.google.com/uc?export=download&confirm=${CODE}&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA"
echo "Installing the new TFLite bin wheel" curl -Lb /tmp/cookie ${TF_COOKIE} -o tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl
fi
echo "Installing the TFLite bin wheel"
sudo pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl sudo pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl
echo "Installing colorama==0.4.4" echo "Installing colorama==0.4.4"
sudo pip3 install colorama==0.4.4 sudo pip3 install colorama==0.4.4