From a3ff42b122d2909e28648d19c6342ed9b02d89a9 Mon Sep 17 00:00:00 2001 From: anishp55 Date: Mon, 18 Nov 2024 09:46:00 -0500 Subject: [PATCH] detect sse 4.2 (#328) see if sse 4.2 is on the processor, if so add openvino. --- install/frigate-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index b830cf58..3eda5afd 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -104,8 +104,8 @@ fi echo "tmpfs /tmp/cache tmpfs defaults 0 0" >> /etc/fstab msg_ok "Installed Frigate $RELEASE" -if grep -q -o -m1 'avx[^ ]*' /proc/cpuinfo; then - msg_ok "AVX Support Detected" +if grep -q -o -m1 -E 'avx[^ ]* | sse4_2' /proc/cpuinfo; then + msg_ok "AVX or SSE 4.2 Support Detected" msg_info "Installing Openvino Object Detection Model (Resilience)" $STD pip install -r /opt/frigate/docker/main/requirements-ov.txt cd /opt/frigate/models