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

Loading Mechanic from a checkpoint throws KeyError #4

Open
AlexChipev opened this issue Mar 20, 2024 · 1 comment
Open

Loading Mechanic from a checkpoint throws KeyError #4

AlexChipev opened this issue Mar 20, 2024 · 1 comment

Comments

@AlexChipev
Copy link

It appears that when loading Mechanic from a checkpoint it throws KeyError. I've tried to override the load_state_dict() and state_dict() methods by adding the extra mechanic state to the state_dict, but still it isn't working. Still can't figure out why.

image

@AlexChipev
Copy link
Author

Seems like the solution is to reinitialize the mechanic state

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