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

Problem with pre-trained parameters #88

Open
TiloccaS opened this issue Mar 28, 2024 · 1 comment
Open

Problem with pre-trained parameters #88

TiloccaS opened this issue Mar 28, 2024 · 1 comment

Comments

@TiloccaS
Copy link

hi @mbrossar @marooncn, I think you have done a great job, I wanted to ask if it is possible to have the network weights pre trained updated to the current network configuration, as I have this error:


raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for TORCHIEKF:
        Unexpected key(s) in state_dict: "mes_net.cov_net.8.weight", "mes_net.cov_net.8.bias", "mes_net.cov_net.12.weight", "mes_net.cov_net.12.bias", "mes_net.cov_net.16.weight", "mes_net.cov_net.16.bias".
        size mismatch for mes_net.cov_net.4.weight: copying a param with shape torch.Size([64, 32, 5]) from checkpoint, the shape in current model is torch.Size([32, 32, 5]).
        size mismatch for mes_net.cov_net.4.bias: copying a param with shape torch.Size([64]) from checkpoint, the shape in current model 
is torch.Size([32])

@luopengting
Copy link

luopengting commented Jul 7, 2024

Hi, based on the checkpoint provided and my guesswork, I fixed this problem and verified that the inference results are correct. I hope this will help you. :D
code:
https://github.com/luopengting/ai-imu-dr/blob/master/src/utils_torch_filter.py

result:
2011_09_30_drive_0027_extract

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