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

Parameter setting of pre-trained model #4

Closed
LuanDi1996 opened this issue Jul 3, 2022 · 1 comment
Closed

Parameter setting of pre-trained model #4

LuanDi1996 opened this issue Jul 3, 2022 · 1 comment

Comments

@LuanDi1996
Copy link

No description provided.

@LuanDi1996 LuanDi1996 reopened this Jul 3, 2022
@LuanDi1996
Copy link
Author

LuanDi1996 commented Jul 3, 2022

Hi, thanks for sharing the great work.

I have a problem when I run the following command to predict with the pre-trained marginal prediction mode densetnt.raster.vehicle.1.zip here https://github.com/Tsinghua-MARS-Lab/M2I#marginal-trajectory-prediction. It seems like the parameter setting between the pre-trained model and script are different.

_RuntimeError: Error(s) in loading state_dict for VectorNet:
	size mismatch for decoder.goals_2D_decoder.mlp.linear.weight: copying a param with shape torch.Size([128, 384]) from checkpoint, the shape in current model is torch.Size([128, 512]).
	size mismatch for decoder.goals_2D_decoder.fc.weight: copying a param with shape torch.Size([1, 512]) from checkpoint, the shape in current model is torch.Size([1, 640])._

@LuanDi1996 LuanDi1996 changed the title Pre Parameter setting of pre-trained model Jul 3, 2022
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

1 participant