mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 15:19:59 +08:00
...
This commit is contained in:
parent
c431ced520
commit
a3f67ffcf8
@ -168,5 +168,9 @@
|
|||||||
"预训练的SSL模型路径": "预训练的SSL模型路径",
|
"预训练的SSL模型路径": "预训练的SSL模型路径",
|
||||||
"预训练的SoVITS-D模型路径": "预训练的SoVITS-D模型路径",
|
"预训练的SoVITS-D模型路径": "预训练的SoVITS-D模型路径",
|
||||||
"预训练的SoVITS-G模型路径": "预训练的SoVITS-G模型路径",
|
"预训练的SoVITS-G模型路径": "预训练的SoVITS-G模型路径",
|
||||||
"预训练的中文BERT模型路径": "预训练的中文BERT模型路径"
|
"预训练的中文BERT模型路径": "预训练的中文BERT模型路径",
|
||||||
|
"以下模型不存在:":"以下模型不存在:",
|
||||||
|
"未下载V1模型":"未下载V1模型",
|
||||||
|
"未下载V2模型":"未下载V2模型"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
webui.py
2
webui.py
@ -731,7 +731,7 @@ def switch_version(version_):
|
|||||||
if len(pretrained_gpt_name) > 1 and len(pretrained_sovits_name) > 1:
|
if len(pretrained_gpt_name) > 1 and len(pretrained_sovits_name) > 1:
|
||||||
return {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2].replace("s2G","s2D")}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}
|
return {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2].replace("s2G","s2D")}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}
|
||||||
else:
|
else:
|
||||||
raise gr.Error(i18n('未下载V1模型'))
|
raise gr.Error(i18n(f'未下载{version.upper()}模型'))
|
||||||
|
|
||||||
|
|
||||||
from text.g2pw import G2PWPinyin
|
from text.g2pw import G2PWPinyin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user