From 122271dd34a5dcecd1550f3d5afa9b34f57c430d Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 29 Jun 2024 07:29:11 -0400 Subject: [PATCH] Update frigate-install.sh Update TensorFlow Lite URL fixes https://github.com/tteck/Proxmox/issues/3285 --- install/frigate-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 50847e70..52b3cb2d 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -45,6 +45,7 @@ if [[ "$CTTYPE" == "0" ]]; then chmod 660 /dev/dri/* fi msg_ok "Set Up Hardware Acceleration" + RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | jq -r '.tag_name') msg_ok "Stop spinner to prevent segmentation fault" msg_info "Installing Frigate $RELEASE (Perseverance)" @@ -155,7 +156,10 @@ cd / wget -qO edgetpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite wget -qO cpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess.tflite cp /opt/frigate/labelmap.txt /labelmap.txt -wget -qO cpu_audio_model.tflite https://tfhub.dev/google/lite-model/yamnet/classification/tflite/1?lite-format=tflite +wget -qO yamnet-tflite-classification-tflite-v1.tar.gz https://www.kaggle.com/api/v1/models/google/yamnet/tfLite/classification-tflite/1/download +tar xzf yamnet-tflite-classification-tflite-v1.tar.gz +rm -rf yamnet-tflite-classification-tflite-v1.tar.gz +mv 1.tflite cpu_audio_model.tflite cp /opt/frigate/audio-labelmap.txt /audio-labelmap.txt mkdir -p /media/frigate wget -qO /media/frigate/person-bicycle-car-detection.mp4 https://github.com/intel-iot-devkit/sample-videos/raw/master/person-bicycle-car-detection.mp4