mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 06:29:59 +08:00
Fix bert path retrieval issue when initializing G2PWPinyin
This commit is contained in:
parent
28effc2d44
commit
d8adfe5c90
1
api.py
1
api.py
@ -1007,6 +1007,7 @@ else:
|
|||||||
logger.info(f"数据类型: int16")
|
logger.info(f"数据类型: int16")
|
||||||
|
|
||||||
# 初始化模型
|
# 初始化模型
|
||||||
|
os.environ["bert_path"] = bert_path
|
||||||
cnhubert.cnhubert_base_path = cnhubert_base_path
|
cnhubert.cnhubert_base_path = cnhubert_base_path
|
||||||
tokenizer = AutoTokenizer.from_pretrained(bert_path)
|
tokenizer = AutoTokenizer.from_pretrained(bert_path)
|
||||||
bert_model = AutoModelForMaskedLM.from_pretrained(bert_path)
|
bert_model = AutoModelForMaskedLM.from_pretrained(bert_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user