mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +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,
|
||||
|
||||
Vendored
-1
@@ -12477,7 +12477,6 @@ var ConnectionMonitorState = class _ConnectionMonitorState {
|
||||
}
|
||||
};
|
||||
async function updateIndicator(online, data = {}, msg) {
|
||||
console.error("HERE", { online, data, msg });
|
||||
ConnectionMonitorState.setData({ online, data });
|
||||
ConnectionMonitorState.updateState();
|
||||
if (msg) log("monitorConnection:", { online, data, msg });
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -70,7 +70,6 @@ export class ConnectionMonitorState {
|
||||
}
|
||||
|
||||
async function updateIndicator(online: boolean, data: VersionInfo = {}, msg?: string): Promise<void> {
|
||||
console.error('HERE', { online, data, msg });
|
||||
ConnectionMonitorState.setData({ online, data });
|
||||
ConnectionMonitorState.updateState();
|
||||
if (msg) log('monitorConnection:', { online, data, msg });
|
||||
|
||||
Reference in New Issue
Block a user