mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
OpenVINO use the last device on the device list instead of CPU
This commit is contained in:
@@ -96,8 +96,8 @@ def get_device():
|
||||
elif "GPU.0" in core.available_devices:
|
||||
device = "GPU.0"
|
||||
else:
|
||||
device = "CPU"
|
||||
shared.log.warning("OpenVINO: No compatible GPU detected!")
|
||||
device = core.available_devices[-1]
|
||||
shared.log.warning(f"OpenVINO: No compatible GPU detected! Using {device}")
|
||||
os.environ.setdefault('OPENVINO_TORCH_BACKEND_DEVICE', device)
|
||||
return device
|
||||
|
||||
|
||||
Reference in New Issue
Block a user