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

RuntimeError: Error(s) in loading state_dict for PointRCNN #2

Open
WakyWakyWayne opened this issue Mar 16, 2022 · 4 comments
Open

RuntimeError: Error(s) in loading state_dict for PointRCNN #2

WakyWakyWayne opened this issue Mar 16, 2022 · 4 comments

Comments

@WakyWakyWayne
Copy link

RuntimeError: Error(s) in loading state_dict for PointRCNN:
size mismatch for rpn.backbone_net.SA_modules.0.mlps.0.layer0.conv.weight: copying a param with shape torch.Size([16, 3, 1, 1]) from checkpoint, the shape in current model is torch.Size([16, 4, 1,1])
size mismatch for rpn.backbone_net.SA_modules.0.mlps.1.layer0.conv.weight: copying a param with shape torch.Size([32, 3, 1, 1]) from checkpoint, the shape in current model is torch.Size([32, 4, 1, 1]).
size mismatch for rpn.backbone_net.FP_modules.0.mlp.layer0.conv.weight: copying a param with shape torch.Size([128, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([128, 257, 1, 1]).

@dmatos2012
Copy link
Owner

HI Waky,Wayky,

Did you download the PointRCNN.pth linked in the README?

@WakyWakyWayne
Copy link
Author

Yes. I have done PointRCNN on Kitti, but I met this problem when I use your ros.

@gehadza
Copy link

gehadza commented Jan 24, 2023

set use_intentisity=False

@zhibingduan
Copy link

@gehadza @WakyWakyWayne Hello, I'm having the same problem and asked gpt about it saying it's due to a mismatch between the checkpoints and the model. You talk about changing use_intensity=false but I don't know where to change the value. By the way, if I retrain the model and run ros with the trained model, will it solve the problem? Any advice would be greatly appreciated!

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

4 participants