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

KeyError: 'optimizer' #50

Open
Werejoice opened this issue Aug 3, 2022 · 7 comments
Open

KeyError: 'optimizer' #50

Werejoice opened this issue Aug 3, 2022 · 7 comments

Comments

@Werejoice
Copy link

Thank you for your excellent work, but I have a problem about module checkpoint.pth.When I try to run segm.train module,there is an error "KeyError: 'optimizer'",Hope you to answer me. thanks again!

@Werejoice
Copy link
Author

I have solved this problem,thank you

@FantasiaT
Copy link

I also encountered the same problem.How did you solve it?

@rstrudel
Copy link
Owner

rstrudel commented Nov 8, 2022

@Werejoice any chance you could share what went wrong and how you solved it ?
I did not encounter this problem.
Thanks

@kihot122
Copy link

I have solved this problem,thank you

Seriously?

@madragonse
Copy link

What version of Python are you using in this project @rstrudel?

@AxelInsa
Copy link

I've been trying to use this code but I encountered the same problem. I downloaded the checkpoint.pth from tiny mask but it looks like there is only 3 key/value inside: model, n_cls and epoch. So the key "optimizer" does not exist. I'm definitely doing something wrong. If anyone can help me, that would be great.

@rstrudel rstrudel reopened this Apr 27, 2023
@BTWBB
Copy link

BTWBB commented Jul 5, 2023

Checkpoint did not save the optimizer when saving. The problem can be solved by deleting checkpoint in seg_tiny_mask according to the code.

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

7 participants