This commit is contained in:
Disty0
2023-08-22 10:39:38 +03:00
parent 12fd9151a7
commit 374307dd8a
3 changed files with 11 additions and 14 deletions
-12
View File
@@ -112,15 +112,3 @@ def get_cached_file_name(*args, model_hash_str, device, cache_root):
file_name = None
model_hash_str = None
return file_name
def openvino_override_opts():
from modules import shared
if not shared.opts.cuda_compile:
shared.log.warn("OpenVINO: Enabling Torch Compile")
shared.opts.cuda_compile = True
if shared.opts.cuda_compile_backend != "openvino_fx":
shared.log.warn("OpenVINO: Setting Torch Compiler backend to OpenVINO FX")
shared.opts.cuda_compile_backend = "openvino_fx"
if shared.opts.sd_backend != "diffusers":
shared.log.warn("OpenVINO: Setting backend to Diffusers")
shared.opts.sd_backend = "diffusers"