Artrajz / vits-simple-api

A simple VITS HTTP API, developed by extending Moegoe with additional features.
GNU Affero General Public License v3.0
823 stars 121 forks source link

使用bert_vits2的模型推理时报错 #87

Closed v3ucn closed 1 year ago

v3ucn commented 1 year ago

File "E:\work\vits-simple-api\bert_vits2\text\chinese_bert.py", line 35, in get_bert_feature res = model(**inputs, output_hidden_states=True) NameError: name 'model' is not defined

Artrajz commented 1 year ago

检查bert模型下了吗

v3ucn commented 1 year ago

刚刚下好了,但是开始报这个错了:

D:\work\vits-simple-api>python app.py DEBUG:tzlocal:Looking up time zone info from registry INFO:apscheduler.scheduler:Scheduler started INFO:vits-simple-api:Loading chinese-roberta-wwm-ext-large... Some weights of the model checkpoint at D:\work\vits-simple-api/bert_vits2/bert/chinese-roberta-wwm-ext-large were not used when initializing BertForMaskedLM: ['bert.pooler.dense.weight', 'bert.pooler.dense.bias', 'cls.seq_relationship.weight', 'cls.seq_relationship.bias']

v3ucn commented 1 year ago

可以了,貌似时1.1的模型和1.0模型不通用导致的,感谢。