COCO Detection Challenge (Bounding Box) Forum

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

> Submission getting error: if r['image_id'] not in image_ids: TypeError: string indices must be integers

I dont know if Im stupid or what but I get the same error regardless of what i do and how i structure the data. I have even tried to submit the ground truth data on validation just to see if i get another result. I am using json.dump such that it is not just a long string but actual numbers. Does anyone know what the error could be?

/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/tmp1EkWeA/run/program/run.py", line 114, in
res = cut_res(res, maxDet=100)
File "/tmp/codalab/tmp1EkWeA/run/program/run.py", line 52, in cut_res
if r['image_id'] not in image_ids:
TypeError: string indices must be integers

Posted by: ivarpersson @ April 17, 2025, 3:39 p.m.
Post in this thread