mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
新增is_share参数也从环境变量中获取;更改is_half/is_share从环境变量中获取值的方式。
This commit is contained in:
parent
e30d937c9a
commit
3857c7d15b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user