Update webui.py

This commit is contained in:
RVC-Boss 2024-06-13 16:44:50 +08:00 committed by GitHub
parent aee85fd98f
commit e4b17c40bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ if if_gpu_ok and len(gpu_infos) > 0:
else: else:
gpu_info = ("%s\t%s" % ("0", "CPU")) gpu_info = ("%s\t%s" % ("0", "CPU"))
gpu_infos.append("%s\t%s" % ("0", "CPU")) gpu_infos.append("%s\t%s" % ("0", "CPU"))
default_batch_size = psutil.virtual_memory().total/ 1024 / 1024 / 1024 / 2 default_batch_size = int(psutil.virtual_memory().total/ 1024 / 1024 / 1024 / 2)
gpus = "-".join([i[0] for i in gpu_infos]) gpus = "-".join([i[0] for i in gpu_infos])
pretrained_sovits_name="GPT_SoVITS/pretrained_models/s2G488k.pth" pretrained_sovits_name="GPT_SoVITS/pretrained_models/s2G488k.pth"