From 0003fbd92e4c4f7be2e9de6c2e741d429237d0c5 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Tue, 6 Aug 2024 18:45:38 +0800 Subject: [PATCH 1/4] Update onnx_api.py --- GPT_SoVITS/text/g2pw/onnx_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPT_SoVITS/text/g2pw/onnx_api.py b/GPT_SoVITS/text/g2pw/onnx_api.py index a08304ca..374c9a4e 100644 --- a/GPT_SoVITS/text/g2pw/onnx_api.py +++ b/GPT_SoVITS/text/g2pw/onnx_api.py @@ -13,6 +13,7 @@ from typing import Tuple import numpy as np import onnxruntime +onnxruntime.set_default_logger_severity(3) from opencc import OpenCC from transformers import AutoTokenizer from pypinyin import pinyin From 34163367c1eb9650af99d817b9faaad759570e21 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:03:33 +0800 Subject: [PATCH 2/4] Update webui.py --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index 2a7b5d37..127cfecc 100644 --- a/webui.py +++ b/webui.py @@ -776,7 +776,7 @@ def check_for_exists(file_list=[],is_train=False): -from text.g2pw import G2PWPinyin +from GPT_SoVITS.text.g2pw import G2PWPinyin g2pw = G2PWPinyin(model_dir="GPT_SoVITS/text/G2PWModel",model_source="GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",v_to_u=False, neutral_tone_with_five=True) with gr.Blocks(title="GPT-SoVITS WebUI") as app: @@ -1014,4 +1014,4 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app: share=is_share, server_port=webui_port_main, quiet=True, - ) \ No newline at end of file + ) From f3378456720ece96a2da1efca0f05c72a96a5891 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:43:34 +0800 Subject: [PATCH 3/4] Update webui.py --- webui.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webui.py b/webui.py index 127cfecc..aa7f613c 100644 --- a/webui.py +++ b/webui.py @@ -774,11 +774,6 @@ def check_for_exists(file_list=[],is_train=False): gr.Warning(i) gr.Warning(i18n('以下文件或文件夹不存在:')) - - -from GPT_SoVITS.text.g2pw import G2PWPinyin -g2pw = G2PWPinyin(model_dir="GPT_SoVITS/text/G2PWModel",model_source="GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",v_to_u=False, neutral_tone_with_five=True) - with gr.Blocks(title="GPT-SoVITS WebUI") as app: gr.Markdown( value= From 20ef716431f9f09c07e1fd61bf830cce8a82ad97 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:04:46 +0800 Subject: [PATCH 4/4] Update models.py --- GPT_SoVITS/module/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPT_SoVITS/module/models.py b/GPT_SoVITS/module/models.py index 3d235754..ec7407e5 100644 --- a/GPT_SoVITS/module/models.py +++ b/GPT_SoVITS/module/models.py @@ -1,3 +1,5 @@ +import warnings +warnings.filterwarnings("ignore") import copy import math import os