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
RuntimeError: Error(s) in loading state_dict for CaptionModel:
size mismatch for classifier.weight: copying a param with shape torch.Size([10003, 256]) from checkpoint, the shape in current model is torch.Size([5003, 256]).
size mismatch for classifier.bias: copying a param with shape torch.Size([10003]) from checkpoint, the shape in current model is torch.Size([5003]).
size mismatch for embedding.weight: copying a param with shape torch.Size([10003, 256]) from checkpoint, the shape in current model is torch.Size([5003, 256]).
上面的图片好像显示不了,这里列一下文字。
作者大大你好,我这边在运行demo.ipynb文件时前面都能正常运行,但最后一个代码块报错:
好像是预训练模型的参数不匹配?但是网上查了很久也没有找到解决办法,能否帮我看看这个问题呢?感激不尽!
The text was updated successfully, but these errors were encountered: