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

Checkpoint state dict does not match the model and some KeyErrors #14

Closed
juyebshin opened this issue Dec 27, 2022 · 4 comments
Closed

Comments

@juyebshin
Copy link

juyebshin commented Dec 27, 2022

Thank you for the public release of your code! I was evaluating the VectorMapNet model with the checkpoint provided and faced some problems as in the screen above.

  1. Loaded state dict does not match the model
    image

  2. KeyErrors in

image

Any idea how to solve these?

@juyebshin juyebshin reopened this Jan 2, 2023
@juyebshin
Copy link
Author

juyebshin commented Jan 2, 2023

Looks like, for second issue, Shapely version conflict 😭

@juyebshin
Copy link
Author

In the code below

the variable o is the index of the matching tree geometry, so additional indexing is needed, something like this:

for o in tree.query(pgeom):
    o = ped_geoms[o] # added
    o_idx = index_by_id[id(o)]

@seva1232
Copy link

Hello! Thank you for the answer! Do you have any ideas about the problem with state dict?

@Mrmoore98
Copy link
Owner

In the code below

the variable o is the index of the matching tree geometry, so additional indexing is needed, something like this:

for o in tree.query(pgeom):
    o = ped_geoms[o] # added
    o_idx = index_by_id[id(o)]

Thank you for pointing out this issue.
the shapely version I used is 1.8. I didn't foresee It upgrade recently. I added it in the requirement.txt.

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