Open huydang90 opened 4 years ago
Hi, can you try accessing without index? optim = checkpoint ['optim'] instead of optim = checkpoint ['optim'][0]
optim = checkpoint ['optim'] instead of optim = checkpoint ['optim'][0]
It works for me. Thanks!
I tried above solution but it didn't work.. could anyone help?
File "/content/drive/MyDrive/Colab/github/PreSumm/src/models/model_builder.py", line 16, in build_optim optim = checkpoint['optim'] KeyError: 'optim'
Hi! Just type 'optims' in checkpoint['optim'] it works.
I tried above solution but it didn't work.. could anyone help?
File "/content/drive/MyDrive/Colab/github/PreSumm/src/models/model_builder.py", line 16, in build_optim optim = checkpoint['optim'] KeyError: 'optim'
Hi, did you solve this problem?
Hi, I am trying to load the checkpoint with -train_from ../models/model_step_15000.pt. However, the error "TypeError: 'Optimizer' object does not support indexing" keeps popping up. I have tried different fix but still haven't gotten around it. Would be great if you could point me in the right direction. Thank you!