You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading Text2Semantic weights from GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt
Loading VITS weights from GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth
/opt/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
Traceback (most recent call last):
File "/opt/GPT_SoVITS/api_v2.py", line 143, in <module>
tts_pipeline = TTS(tts_config)
File "/opt/GPT_SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 252, in init
self._init_models()
File "/opt/GPT_SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 278, in _init_models
self.init_vits_weights(self.configs.vits_weights_path)
File "/opt/GPT_SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 336, in init_vits_weights
vits_model.load_state_dict(dict_s2["weight"], strict=False)
File "/opt/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2152, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for SynthesizerTrn:
size mismatch for enc_p.text_embedding.weight: copying a param with shape torch.Size([732, 192]) from checkpoint, the shape in current model is torch.Size([322, 192]).
size mismatch for ref_enc.spectral.0.fc.weight: copying a param with shape torch.Size([128, 704]) from checkpoint, the shape in current model is torch.Size([128, 1025]).
更新项目后,api.py 中有几处冲突。
clean_text 方法只有两个参数,但是在api.py中给入了3个参数
vq_model 没有记录version导致get_tts_wav中报错
cleaned_text_to_sequence 参数数量有问题
GPT-SoVITS/GPT_SoVITS/module/models.py 文件中 SynthesizerTrn类中的decode方法的refer变量返回为数组类型,导致后续处理失败(这个可能是哪个包更新导致的。)
api_v2.py 启动后报错
下面是我的依赖
The text was updated successfully, but these errors were encountered: