mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
skip sdnq openvino on non-cpu devices
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
from modules.logger import log
|
||||
from modules import devices
|
||||
|
||||
@@ -58,6 +59,9 @@ def get_default_modes(cmd_opts, mem_stat):
|
||||
elif devices.backend in {"directml", "cpu", "mps"}:
|
||||
default_sdp_override_options = ['Dynamic attention']
|
||||
|
||||
if devices.get_optimal_device_name() != "cpu":
|
||||
os.environ.setdefault('SDNQ_USE_OPENVINO_MM', '0')
|
||||
|
||||
return (
|
||||
default_offload_mode,
|
||||
default_diffusers_offload_min_gpu_memory,
|
||||
|
||||
Reference in New Issue
Block a user