Image-Captioning icon indicating copy to clipboard operation
Image-Captioning copied to clipboard

terminate_id = tokens.index('<end>') ---- ValueError: '<end>' is not in list

Open Shanzaay opened this issue 5 years ago • 4 comments

Hi. While executing the test.py file. I am getting the following error.

terminate_id = tokens.index('') ValueError: '' is not in list

Any idea how to resolve this. because the end is actually on the list. Yet I am getting this error.

Shanzaay avatar Oct 23 '19 07:10 Shanzaay

Hey, did you resolve this issue? I'm getting the same error

shardul2903 avatar Apr 10 '20 06:04 shardul2903

no, I wasn't. The code seem to have lot of problems.

Shanzaay avatar Apr 14 '20 12:04 Shanzaay

But here i changed it somehow in python 3.7 and it seems to run and give somewhat fine result. https://drive.google.com/open?id=1RhYWPHbFahKxZC6mJm6Hld1ozySvFucj

Shanzaay avatar Apr 14 '20 12:04 Shanzaay

Okay. Thanks

shardul2903 avatar Apr 17 '20 13:04 shardul2903