mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 22:50:00 +08:00
Merge branch 'RVC-Boss:main' into main
This commit is contained in:
commit
6d3977acb9
@ -144,11 +144,16 @@ def read_dict():
|
|||||||
return polyphonic_dict
|
return polyphonic_dict
|
||||||
|
|
||||||
|
|
||||||
def correct_pronunciation(word,word_pinyins):
|
def correct_pronunciation(word, word_pinyins):
|
||||||
if word in pp_dict:
|
new_pinyins = pp_dict.get(word, "")
|
||||||
word_pinyins = pp_dict[word]
|
if new_pinyins == "":
|
||||||
|
for idx, w in enumerate(word):
|
||||||
return word_pinyins
|
w_pinyin = pp_dict.get(w, "")
|
||||||
|
if w_pinyin != "":
|
||||||
|
word_pinyins[idx] = w_pinyin[0]
|
||||||
|
return word_pinyins
|
||||||
|
else:
|
||||||
|
return new_pinyins
|
||||||
|
|
||||||
|
|
||||||
pp_dict = get_dict()
|
pp_dict = get_dict()
|
||||||
|
2
webui.py
2
webui.py
@ -72,7 +72,7 @@ mem = []
|
|||||||
if_gpu_ok = False
|
if_gpu_ok = False
|
||||||
|
|
||||||
# 判断是否有能用来训练和加速推理的N卡
|
# 判断是否有能用来训练和加速推理的N卡
|
||||||
ok_gpu_keywords={"10","16","20","30","40","A2","A3","A4","P4","A50","500","A60","70","80","90","M4","T4","TITAN","L4","4060","H"}
|
ok_gpu_keywords={"10","16","20","30","40","A2","A3","A4","P4","A50","500","A60","70","80","90","M4","T4","TITAN","L4","4060","H","600"}
|
||||||
set_gpu_numbers=set()
|
set_gpu_numbers=set()
|
||||||
if torch.cuda.is_available() or ngpu != 0:
|
if torch.cuda.is_available() or ngpu != 0:
|
||||||
for i in range(ngpu):
|
for i in range(ngpu):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user