Use cmd_args parser instead of launch.py

This commit is contained in:
Disty0
2023-05-03 21:25:23 +03:00
parent 7577a09528
commit 53f3567224
+3 -1
View File
@@ -111,9 +111,11 @@ def set_cuda_params():
unet_needs_upcast = shared.opts.upcast_sampling
from launch import args
from modules.cmd_args import parser
args = parser.parse_args()
if args.use_ipex:
cpu = torch.device("xpu") #Use XPU instead of CPU. %20 Perf improvement on weak CPUs.
print("Using XPU instead of CPU.")
else:
cpu = torch.device("cpu")
device = device_interrogate = device_gfpgan = device_esrgan = device_codeformer = None