From 3ced402f7459954ebc10dbd981caa6a4a96ae009 Mon Sep 17 00:00:00 2001 From: Intro Date: Thu, 13 Mar 2025 05:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E8=AF=86=E5=88=AB=E5=99=A8=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.py b/config.py index 1f74128..1a90cd5 100644 --- a/config.py +++ b/config.py @@ -15,6 +15,9 @@ bert_path = "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large" pretrained_sovits_path = "GPT_SoVITS/pretrained_models/s2G488k.pth" pretrained_gpt_path = "GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt" +# 部分模型的启用 +enable_costum_langdetect = False + exp_root = "logs" python_exec = sys.executable or "python" if torch.cuda.is_available(): @@ -54,6 +57,8 @@ class Config: self.pretrained_sovits_path = pretrained_sovits_path self.pretrained_gpt_path = pretrained_gpt_path + self.enable_costum_langdetect = enable_costum_langdetect + self.exp_root = exp_root self.python_exec = python_exec self.infer_device = infer_device