报错内容:
Loaded encoder "pretrained.pt" trained to step 1594501
Synthesizer using device: cuda
Trainable Parameters: 32.869M
Traceback (most recent call last):
File "C:\德丽莎\toolbox_init.py", line 123, in
func = lambda: self.synthesize() or self.vocode()
File "C:\德丽莎\toolboxinit_.py", line 238, in synthesize
specs = self.synthesizer.synthesize_spectrograms(texts, embeds, style_idx=int(self.ui.style_slider.value()), min_stop_token=min_token, steps=int(self.ui.length_slider.value())*200)
File "C:\德丽莎\synthesizer\inference.py", line 87, in synthesize_spectrograms
self.load()
File "C:\德丽莎\synthesizer\inference.py", line 65, in load
self._model.load(self.model_fpath)
File "C:\德丽莎\synthesizer\models\tacotron.py", line 547, in load
self.load_state_dict(checkpoint["model_state"], strict=False)
File "D:\anaconda3\envs\Theresa\lib\site-packages\torch\nn\modules\module.py", line 1482, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Tacotron:
size mismatch for gst.stl.attention.W_query.weight: copying a param with shape torch.Size([512, 256]) from checkpoint, the shape in current model is torch.Size([512, 512]).
6条答案
按热度按时间ca1c2owp1#
然后重新生成就又可以用了
ua4mk5z42#
有兼容错误,最新的代码分支吗?
bxjv4tth3#
是的
vnzz0bqm4#
用的哪个模型?
wmomyfyw5#
https://www.bilibili.com/video/BV1DL4y1q7VL
这个视频里给的
vsaztqbk6#
https://www.bilibili.com/video/BV1DL4y1q7VL 这个视频里给的
第三方模型嘛。。可能训练的时候用的旧代码,要切换一下