Update install_birdnet.sh

This commit is contained in:
mcguirepr89
2021-10-01 11:07:29 -04:00
committed by GitHub
parent 3154d23581
commit dc9919d1da
+8 -7
View File
@@ -46,22 +46,23 @@ install_deps() {
}
install_birdnet() {
set -e
set -xe
cd ~/BirdNET-Lite || exit 1
echo "Upgrading pip, wheel, and setuptools"
sudo pip3 install --upgrade pip wheel setuptools &> /dev/null
sudo pip3 install --upgrade pip wheel setuptools
echo "Fetching the TFLite pre-built binaries"
TFLITE_URL="https://drive.google.com/uc?export=download&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA"
curl -sc /tmp/cookie ${TFLITE_URL} &> /dev/null
curl -sc /tmp/cookie ${TFLITE_URL}
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
TF_COOKIE="https://drive.google.com/uc?export=download&confirm=${CODE}&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA"
curl -Lb /tmp/cookie ${TF_COOKIE} -o tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl &> /dev/null
curl -Lb /tmp/cookie ${TF_COOKIE} -o tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl
echo "Installing the new TFLite bin wheel"
sudo pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl &> /dev/null
sudo pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl
echo "Installing colorama==0.4.4"
sudo pip3 install colorama==0.4.4 &> /dev/null
sudo pip3 install colorama==0.4.4
echo "Installing librosa"
sudo pip3 install librosa &> /dev/null
sudo pip3 install librosa
set +x
}
echo "