MockingBird icon indicating copy to clipboard operation
MockingBird copied to clipboard

模型加载错误,维度错误

Open wangsheng0131 opened this issue 1 year ago • 6 comments

使用的最新的main分支代码,合成模型用的是https://github.com/babysor/MockingBird/wiki/Quick-Start-(Newbie) wiki中的模型,https://github.com/babysor/MockingBird/issues/37 中的方案,并解决不了问题。

报错如下:

RuntimeError: Error(s) in loading state_dict for Tacotron: size mismatch for encoder.embedding.weight: copying a param with shape torch.Size([70, 512]) from checkpoint, the shape in current model is torch.Size([75, 512]). size mismatch for encoder_proj.weight: copying a param with shape torch.Size([128, 512]) from checkpoint, the shape in current model is torch.Size([128, 1024]). size mismatch for decoder.attn_rnn.weight_ih: copying a param with shape torch.Size([384, 768]) from checkpoint, the shape in current model is torch.Size([384, 1280]). size mismatch for decoder.rnn_input.weight: copying a param with shape torch.Size([1024, 640]) from checkpoint, the shape in current model is torch.Size([1024, 1152]). size mismatch for decoder.stop_proj.weight: copying a param with shape torch.Size([1, 1536]) from checkpoint, the shape in current model is torch.Size([1, 2048]).

wangsheng0131 avatar May 17 '23 15:05 wangsheng0131

image

wangsheng0131 avatar May 17 '23 15:05 wangsheng0131

好了吗?我也遇到这个错误了

alihua123 avatar May 22 '23 07:05 alihua123

有人解决了吗?我也同样

mqmelon avatar Jun 14 '23 08:06 mqmelon

同问,解决了吗?

jcxian avatar Aug 24 '23 08:08 jcxian

同问

191611 avatar Sep 12 '23 09:09 191611

同问

LvHuaiSheng avatar Nov 17 '23 00:11 LvHuaiSheng