Microsoft COCO Image Captioning Challenge Forum

Go back to competition Back to thread list Post in this thread

> IndexError: list index out of range, IN if 'caption' in anns[0]:

/opt/conda/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
PTBTokenizer tokenized 2492305 tokens at 1226604.44 tokens per second.
PTBTokenizer tokenized 422850 tokens at 405476.72 tokens per second.
Traceback (most recent call last):
File "/tmp/codalab/tmpMRgV5x/run/program/cocoEvalCapCoda.py", line 81, in
cocoRes = coco.loadRes(resFile_t5)
File "/tmp/codalab/tmpMRgV5x/run/program/pycocotools/coco.py", line 280, in loadRes
if 'caption' in anns[0]:
IndexError: list index out of range

Have anyone encountered this problem?

Posted by: wzn0828 @ Aug. 27, 2018, 7:50 a.m.

Sorry, it's my fault in codes.

Posted by: wzn0828 @ Aug. 27, 2018, 8:59 a.m.
Post in this thread