From c150a05636edafca3dc2b171d7a6d4f346a16441 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 17 Mar 2026 20:43:59 +0100 Subject: [PATCH] fix(frigate): check OpenVino model files exist before configuring detector When the OpenVino model build fails (e.g. TensorFlow import error), the model files are not created but the config still references them if the CPU supports avx/sse4_2, causing Frigate to crash on start with FileNotFoundError. Now also checks that ssdlite_mobilenet_v2.xml and coco_91cl_bkgr.txt actually exist before configuring the OpenVino detector, falling back to CPU model otherwise. Fixes #12808 --- install/frigate-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 4399c6ca5..5c1f4b29f 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -289,7 +289,7 @@ detect: enabled: false EOF -if grep -q -o -m1 -E 'avx[^ ]*|sse4_2' /proc/cpuinfo; then +if grep -q -o -m1 -E 'avx[^ ]*|sse4_2' /proc/cpuinfo && [[ -f /openvino-model/ssdlite_mobilenet_v2.xml ]] && [[ -f /openvino-model/coco_91cl_bkgr.txt ]]; then cat <>/config/config.yml ffmpeg: hwaccel_args: auto