diff --git a/modules/devices.py b/modules/devices.py index 0863985e6..8bf2def3f 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -183,6 +183,8 @@ def get_cuda_device_string(): def get_optimal_device_name(): + if backend == 'openvino': + return "cpu" if cuda_ok or backend == 'directml': return get_cuda_device_string() if has_mps() and backend != 'openvino':