mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-23 17:52:05 +02:00
Tune OV for latency (#20160)
This commit is contained in:
parent
0e61d3f153
commit
e4d5f1f94e
@ -195,6 +195,9 @@ class OpenVINOModelRunner(BaseModelRunner):
|
|||||||
# Apply performance optimization
|
# Apply performance optimization
|
||||||
self.ov_core.set_property(device, {"PERF_COUNT": "NO"})
|
self.ov_core.set_property(device, {"PERF_COUNT": "NO"})
|
||||||
|
|
||||||
|
if device in ["GPU", "AUTO"]:
|
||||||
|
self.ov_core.set_property(device, {"PERFORMANCE_HINT": "LATENCY"})
|
||||||
|
|
||||||
# Compile model
|
# Compile model
|
||||||
self.compiled_model = self.ov_core.compile_model(
|
self.compiled_model = self.ov_core.compile_model(
|
||||||
model=model_path, device_name=device
|
model=model_path, device_name=device
|
||||||
|
Loading…
Reference in New Issue
Block a user