Skip to content

Commit 339ba66

Browse files
committed
Set GPU_QUEUE_THROTTLE to low
1 parent 271051f commit 339ba66

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

frigate/detectors/detection_runners.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,12 @@ def __init__(self, model_path: str, device: str, model_type: str, **kwargs):
314314
if device in ["GPU", "AUTO", "NPU"]:
315315
self.ov_core.set_property(device, {"PERFORMANCE_HINT": "LATENCY"})
316316

317+
if device in ["GPU", "AUTO"]:
318+
try:
319+
self.ov_core.set_property("GPU", {"GPU_QUEUE_THROTTLE": "LOW"})
320+
except Exception as e:
321+
logger.debug(f"GPU_QUEUE_THROTTLE not supported: {e}")
322+
317323
if device == "NPU" and OpenVINOModelRunner.is_detection_model(model_type):
318324
try:
319325
self.ov_core.set_property(device, {"NPU_TURBO": "YES"})

0 commit comments

Comments
 (0)