Closed ZhiqiJiang closed 5 years ago
I met the same issue, can this be solved somehow? As far as I understand from issue #8 , one should train the model again and then load provided model's weights. Not very handy to be honest.
Kind of new in pytorch, so please let me know if I get this wrong.
Traceback (most recent call last): File "inference.py", line 77, in
main()
File "inference.py", line 32, in main
model.load_state_dict(checkpoint['state_dict'])
KeyError: 'state_dict'