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

您好,我在推理的时候遇到了一个参数不匹配的问题,万分感谢 #15

Open
sHicg1997 opened this issue Dec 23, 2024 · 1 comment

Comments

@sHicg1997
Copy link

Traceback (most recent call last):
File "/data/teeth_code/CRA-PCN/infer.py", line 38, in
model.load_state_dict(checkpoint['model'])
File "/home/scg/.conda/envs/mmrota/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1604, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DataParallel:
size mismatch for module.decoder.ub2.deconv.ps.weight: copying a param with shape torch.Size([32, 128, 4]) from checkpoint, the shape in current model is torch.Size([32, 128, 8]).

@EasyRy
Copy link
Owner

EasyRy commented Dec 26, 2024

你好。看起来似乎是用了PCN的权重,而model是shapenet的

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

2 participants