diff --git a/modules/devices.py b/modules/devices.py index 956d8fb93..28ed2dc53 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -264,7 +264,7 @@ def set_cuda_params(): args = cmd_args.parser.parse_args() backend = 'not set' -if args.use_ipex or (hasattr(torch, 'xpu') and torch.xpu.is_available()): +if (args.use_ipex or (hasattr(torch, 'xpu') and torch.xpu.is_available())) and not args.use_openvino: backend = 'ipex' from modules.intel.ipex import ipex_init ok, e = ipex_init() diff --git a/webui.sh b/webui.sh index d88c8ec53..1fc9121de 100755 --- a/webui.sh +++ b/webui.sh @@ -80,7 +80,7 @@ else exit 1 fi -if [ -d "$(realpath "$venv_dir")/lib/" ] +if [ -d "$(realpath "$venv_dir")/lib/" ] && [[ -z "${DISABLE_VENV_LIBS}" ]] then export LD_LIBRARY_PATH=$(realpath "$venv_dir")/lib/:$LD_LIBRARY_PATH fi