From 3857c7d15b5771569dbf256a06c1d988f6bb9a71 Mon Sep 17 00:00:00 2001 From: Kenn Zhang Date: Tue, 13 Feb 2024 03:14:01 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eis=5Fshare=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B9=9F=E4=BB=8E=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E4=B8=AD?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=EF=BC=9B=E6=9B=B4=E6=94=B9is=5Fhalf/is=5Fsha?= =?UTF-8?q?re=E4=BB=8E=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E4=B8=AD?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=80=BC=E7=9A=84=E6=96=B9=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index fef2fac..3e9e951 100644 --- a/config.py +++ b/config.py @@ -5,8 +5,10 @@ import torch # 推理用的指定模型 sovits_path = "" gpt_path = "" -is_half = eval(os.environ.get("is_half","True")) -is_share=False +is_half_str = os.environ.get("is_half", "True") +is_half = True if is_half_str.lower() == 'true' else False +is_share_str = os.environ.get("is_share","False") +is_share= True if is_share_str.lower() == 'true' else False cnhubert_path = "GPT_SoVITS/pretrained_models/chinese-hubert-base" bert_path = "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large"