segmenter icon indicating copy to clipboard operation
segmenter copied to clipboard

KeyError: 'optimizer'

Open Werejoice opened this issue 2 years ago • 7 comments

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 avatar Aug 03 '22 14:08 Werejoice

I have solved this problem,thank you

Werejoice avatar Aug 27 '22 09:08 Werejoice

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

FantasiaT avatar Sep 05 '22 14:09 FantasiaT

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

rstrudel avatar Nov 08 '22 08:11 rstrudel

I have solved this problem,thank you

Seriously?

kihot122 avatar Dec 20 '22 17:12 kihot122

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

madragonse avatar Dec 20 '22 17:12 madragonse

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.

AxelInsa avatar Apr 21 '23 07:04 AxelInsa

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

BTWBB avatar Jul 05 '23 01:07 BTWBB