Skip to content

NVR with realtime local object detection for IP cameras

Fix multi-GPU OpenVINO detection for enrichments (#23188)

Aaron Daubmanc8cfb9400a0b
diff --git a/frigate/detectors/detection_runners.py b/frigate/detectors/detection_runners.py
index 8d7eb1e671..39ebbf5783 100644
--- a/frigate/detectors/detection_runners.py
+++ b/frigate/detectors/detection_runners.py
@@ -79,7 +79,11 @@ def is_openvino_gpu_npu_available() -> bool:
available_devices = get_openvino_available_devices()
# Check for GPU, NPU, or other acceleration devices (excluding CPU)
acceleration_devices = ["GPU", "MYRIAD", "NPU", "GNA", "HDDL"]
- return any(device in available_devices for device in acceleration_devices)
+ return any(
+ avail_dev == accel_dev or avail_dev.startswith(accel_dev + ".")
+ for avail_dev in available_devices
+ for accel_dev in acceleration_devices
+ )
class BaseModelRunner(ABC):