mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-07 19:31:11 +03:00
OpenVINO Hardware Improvements (#20071)
* Use OpenVINO directly to detect if devices are available * Cleanup * Update OpenVINO * Cleanup * Don't try to use OpenVINO when CPU is set as device * Catch case where input tensor can't be pre-defined * Cleanup
This commit is contained in:
+12
-8
@@ -338,14 +338,18 @@ def get_ort_providers(
|
||||
else:
|
||||
continue
|
||||
elif provider == "OpenVINOExecutionProvider":
|
||||
os.makedirs(os.path.join(MODEL_CACHE_DIR, "openvino/ort"), exist_ok=True)
|
||||
providers.append(provider)
|
||||
options.append(
|
||||
{
|
||||
"cache_dir": os.path.join(MODEL_CACHE_DIR, "openvino/ort"),
|
||||
"device_type": device,
|
||||
}
|
||||
)
|
||||
# OpenVINO is used directly
|
||||
if device == "OpenVINO":
|
||||
os.makedirs(
|
||||
os.path.join(MODEL_CACHE_DIR, "openvino/ort"), exist_ok=True
|
||||
)
|
||||
providers.append(provider)
|
||||
options.append(
|
||||
{
|
||||
"cache_dir": os.path.join(MODEL_CACHE_DIR, "openvino/ort"),
|
||||
"device_type": device,
|
||||
}
|
||||
)
|
||||
elif provider == "MIGraphXExecutionProvider":
|
||||
# MIGraphX uses more CPU than ROCM, while also being the same speed
|
||||
if device == "MIGraphX":
|
||||
|
||||
Reference in New Issue
Block a user