From 031bbd9cb2da0e4780745ac8e6c9366b97bc9291 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:15:04 +0100 Subject: [PATCH] Fail-safe OpenVINO build; fix edgetpu path Use an absolute path for the downloaded edgetpu model to ensure it lands at /edgetpu_model.tflite. Wrap the OpenVINO build step in a conditional: only copy the generated .xml/.bin and fetch the COCO class file if build_ov_model.py exits successfully; otherwise emit a warning and allow Frigate to fall back to the CPU model (handles machines without required CPU instructions). --- install/frigate-install.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 8d1e47b29..9e4731532 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -178,7 +178,7 @@ NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Downloading Inference Models" mkdir -p /models /openvino-model -wget -q -O edgetpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite +wget -q -O /edgetpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite wget -q -O /models/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 msg_ok "Downloaded Inference Models" @@ -210,12 +210,15 @@ msg_info "Building OpenVino Model" cd /models wget -q http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz $STD tar -zxf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz --no-same-owner -$STD python3 /opt/frigate/docker/main/build_ov_model.py -cp /models/ssdlite_mobilenet_v2.xml /openvino-model/ -cp /models/ssdlite_mobilenet_v2.bin /openvino-model/ -wget -q https://github.com/openvinotoolkit/open_model_zoo/raw/master/data/dataset_classes/coco_91cl_bkgr.txt -O /openvino-model/coco_91cl_bkgr.txt -sed -i 's/truck/car/g' /openvino-model/coco_91cl_bkgr.txt -msg_ok "Built OpenVino Model" +if python3 /opt/frigate/docker/main/build_ov_model.py 2>&1; then + cp /models/ssdlite_mobilenet_v2.xml /openvino-model/ + cp /models/ssdlite_mobilenet_v2.bin /openvino-model/ + wget -q https://github.com/openvinotoolkit/open_model_zoo/raw/master/data/dataset_classes/coco_91cl_bkgr.txt -O /openvino-model/coco_91cl_bkgr.txt + sed -i 's/truck/car/g' /openvino-model/coco_91cl_bkgr.txt + msg_ok "Built OpenVino Model" +else + msg_warn "OpenVino build failed (CPU may not support required instructions). Frigate will use CPU model." +fi msg_info "Building Frigate Application (Patience)" cd /opt/frigate