Remove OpenVINO device warning

This commit is contained in:
Disty0
2023-09-28 00:26:53 +03:00
parent 180f8c9c93
commit 49d181b8a3
2 changed files with 1 additions and 4 deletions
Submodule extensions-builtin/sd-dynamic-thresholding added at 55ca687fb8
-4
View File
@@ -85,10 +85,6 @@ def get_device():
shared.log.warning("OpenVINO: No compatible GPU detected!")
os.environ.setdefault('OPENVINO_TORCH_BACKEND_DEVICE', device)
shared.log.debug(f"OpenVINO Device: {device}")
if shared.opts.cuda_compile_errors and device not in core.available_devices:
shared.log.error(f"OpenVINO: Specified device {device} is not in the list of OpenVINO Available Devices")
assert device in core.available_devices, f"OpenVINO: Specified device {device} is not in the list of OpenVINO Available Devices"
return device
def cache_root_path():