Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

权重和偏置文件的shape torch.size 的不匹配问题 #8

Open
guoyanzhongwgfufg opened this issue Nov 4, 2022 · 4 comments
Open

Comments

@guoyanzhongwgfufg
Copy link

size mismatch for out.weight: copying a param with shape torch.Size([4, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([3, 64, 3, 3]).
size mismatch for out.bias: copying a param with shape torch.Size([4]) from checkpoint, the shape in current model is torch.Size([3]).

   这个错误怎么办?找了半天找不到解决方案
   跪求了
   目前已经用您的模型完成数据集训练,就差检测和评估就能用了,谁知道这个错错误过不去啊?请大佬指点
@qiaofengsheng
Copy link
Owner

使用的加载权重方式是什么

@guoyanzhongwgfufg
Copy link
Author

guoyanzhongwgfufg commented Feb 10, 2023 via email

@zbyyzx
Copy link

zbyyzx commented Jun 15, 2023

请问你最后是怎么解决的

@guoyanzhongwgfufg
Copy link
Author

guoyanzhongwgfufg commented Jun 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants