sgrvinod / a-PyTorch-Tutorial-to-Image-Captioning

Show, Attend, and Tell | a PyTorch Tutorial to Image Captioning

Repository from Github https://github.comsgrvinod/a-PyTorch-Tutorial-to-Image-CaptioningRepository from Github https://github.comsgrvinod/a-PyTorch-Tutorial-to-Image-Captioning

eval.py error!

jainnipun11 opened this issue · comments

Since, the tar file given in readme.md is corrupt, i used the tar file that is being generated after training. As i give its path in eval.py and run it, it shows me the following error;
TypeError Traceback (most recent call last)
in ()
8 # Load model
9
---> 10 decoder = checkpoint['decoder']
11 decoder = decoder.to(device)
12 decoder.eval()

TypeError: string indices must be integers

How to resolve!?