mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 06:29:59 +08:00
Merge commit '6e2b49186c5b961f0de41ea485d398dffa9787b4' into Doc
This commit is contained in:
commit
cb4e31e927
@ -34,3 +34,4 @@ opencc; sys_platform != 'linux'
|
||||
opencc==1.1.1; sys_platform == 'linux'
|
||||
python_mecab_ko; sys_platform != 'win32'
|
||||
fastapi<0.112.2
|
||||
x_transformers
|
||||
|
3
webui.py
3
webui.py
@ -90,11 +90,12 @@ if torch.cuda.is_available() or ngpu != 0:
|
||||
# gpu_infos.append("%s\t%s" % ("0", "Apple GPU"))
|
||||
# mem.append(psutil.virtual_memory().total/ 1024 / 1024 / 1024) # 实测使用系统内存作为显存不会爆显存
|
||||
|
||||
minmem=min(mem)
|
||||
|
||||
def set_default():
|
||||
global default_batch_size,default_max_batch_size,gpu_info,default_sovits_epoch,default_sovits_save_every_epoch,max_sovits_epoch,max_sovits_save_every_epoch,default_batch_size_s1
|
||||
if if_gpu_ok and len(gpu_infos) > 0:
|
||||
gpu_info = "\n".join(gpu_infos)
|
||||
minmem = min(mem)
|
||||
default_batch_size = minmem // 2 if version!="v3"else minmem//14
|
||||
default_batch_size_s1=minmem // 2
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user