When I submit my caption results it mat the error as follow:
"/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.')
Traceback (most recent call last):
File "/tmp/codalab/tmpVFf2Ni/run/program/cocoEvalCapCoda.py", line 48, in
elif not file.find(valset) == -1 and fileSplit[3] == 'results.json':
IndexError: list index out of range"
I need help for the submit!!!
What generated captions files should I submit, and what files should I submit?????
The way Python indexing works is that it starts at 0, so the first number of your list would be [0]. Index Error: List index out of range means you are trying to get an item in a list that doesn't exist. It means that you are referring to n-th element of the python list, while the length of the list is smaller than n. whenever you get this type of error please cross check with items that comes between/middle in range, and insure that their index is not last if you get output then you have made perfect error that mentioned.
An index in Python refers to a position within an ordered list . To retrieve an element of the list, you use the index operator ([]) . Using indexing you can easily get any element by its position.
http://net-informations.com/python/ds/lists.htm
Posted by: murphybeck @ Jan. 17, 2022, 7:41 a.m.Checking your data. Maybe the value contains more space between words.
Posted by: loki24 @ March 6, 2022, 10:06 a.m.Sorry, my last replay is wrong. The true reason maybe the false name of .json files. Please checking .json files' name.
Posted by: loki24 @ March 7, 2022, 1:43 a.m.