From 793b0043deb59f67c1d019f9caf3da4e1e625770 Mon Sep 17 00:00:00 2001 From: wjd <65559675+wjddd@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:30:57 +0800 Subject: [PATCH 1/2] Fix g2pw bug (#1872) --- GPT_SoVITS/text/g2pw/g2pw.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/GPT_SoVITS/text/g2pw/g2pw.py b/GPT_SoVITS/text/g2pw/g2pw.py index 1e3738ab..e81b24de 100644 --- a/GPT_SoVITS/text/g2pw/g2pw.py +++ b/GPT_SoVITS/text/g2pw/g2pw.py @@ -144,11 +144,16 @@ def read_dict(): return polyphonic_dict -def correct_pronunciation(word,word_pinyins): - if word in pp_dict: - word_pinyins = pp_dict[word] - - return word_pinyins +def correct_pronunciation(word, word_pinyins): + new_pinyins = pp_dict.get(word, "") + if new_pinyins == "": + for idx, w in enumerate(word): + 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() From a1fe2267af2df11cdaf28678af03fc958dc94a86 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:16:32 +0800 Subject: [PATCH 2/2] Update webui.py NVIDIA RTX 6000 Ada Generation --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index d510370f..60d585e8 100644 --- a/webui.py +++ b/webui.py @@ -72,7 +72,7 @@ mem = [] if_gpu_ok = False # 判断是否有能用来训练和加速推理的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() if torch.cuda.is_available() or ngpu != 0: for i in range(ngpu):