mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-12-01 06:04:22 +08:00
Fix training error caused by float type of default_batch_size parameter (#2662)
This commit is contained in:
parent
6fb441f65e
commit
92d2d337fd
4
webui.py
4
webui.py
@ -116,8 +116,8 @@ def set_default():
|
||||
gpu_info = "\n".join(gpu_infos)
|
||||
if is_gpu_ok:
|
||||
minmem = min(mem)
|
||||
default_batch_size = minmem // 2 if version not in v3v4set else minmem // 8
|
||||
default_batch_size_s1 = minmem // 2
|
||||
default_batch_size = int(minmem // 2 if version not in v3v4set else minmem // 8)
|
||||
default_batch_size_s1 = int(minmem // 2)
|
||||
else:
|
||||
default_batch_size = default_batch_size_s1 = int(psutil.virtual_memory().total / 1024 / 1024 / 1024 / 4)
|
||||
if version not in v3v4set:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user