OpenVINO use Diffusers Lora loading

This commit is contained in:
Disty0
2023-11-15 19:44:33 +03:00
parent 69f0d41b99
commit 1b9ca52afa
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -164,7 +164,8 @@ def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn_dims=No
shared.compiled_model_state.lora_model.append(f"{name}:{te_multipliers[i] if te_multipliers else 1.0}")
if shared.backend == shared.Backend.DIFFUSERS and (os.environ.get('SD_LORA_DIFFUSERS', None)
or getattr(network_on_disk, 'shorthash', None) == 'aaebf6360f7d' # lcm sd15
or getattr(network_on_disk, 'shorthash', None) == '3d18b05e4f56'): # lcm sdxl
or getattr(network_on_disk, 'shorthash', None) == '3d18b05e4f56' # lcm sdxl
or (shared.opts.cuda_compile and shared.opts.cuda_compile_backend == "openvino_fx")):
net = load_diffusers(name, network_on_disk)
else:
net = load_network(name, network_on_disk)
+1 -1
View File
@@ -516,7 +516,7 @@ def check_torch():
install('hidet', 'hidet')
if args.use_openvino or opts.get('cuda_compile_backend', '') == 'openvino_fx':
uninstall('openvino')
install('openvino-nightly==2023.2.0.dev20231102', 'openvino-nightly')
install('openvino-nightly==2023.3.0.dev20231114', 'openvino-nightly')
install('onnxruntime-openvino', 'onnxruntime-openvino', ignore=True) # TODO numpy version conflicts with tensorflow and doesn't support Python 3.11
os.environ.setdefault('PYTORCH_TRACING_MODE', 'TORCHFX')
os.environ.setdefault('NEOReadDebugKeys', '1')