SOLO icon indicating copy to clipboard operation
SOLO copied to clipboard

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

Open huangshouyou opened this issue 3 years ago • 10 comments

Thanks for your error report and we appreciate it a lot.

[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 18/18, 19.6 task/s, elapsed: 1s, ETA: 0s writing results to results_solo.pkl Starting evaluate segm Loading and preparing results... Traceback (most recent call last): File "tools/test_ins.py", line 257, in main() File "tools/test_ins.py", line 235, in main coco_eval(result_files, eval_types, dataset.coco) File "/home/atm/hsyou/SOLO/mmdet/core/evaluation/coco_utils.py", line 41, in coco_eval coco_dets = coco.loadRes(result_file) File "/home/atm/anaconda3/envs/solo/lib/python3.7/site-packages/pycocotools-2.0-py3.7-linux-x86_64.egg/pycocotools/coco.py", line 326, in loadRes if 'caption' in anns[0]: IndexError: list index out of range

huangshouyou avatar May 07 '21 01:05 huangshouyou

I have met the same problem. Unsolved yet.

zhuaiyi avatar Jun 17 '21 06:06 zhuaiyi

Any solutions on this yet? Having the same error? Seems to be related to the bbox annotations, but I wasn't able to rule this error out yet.

gernophil avatar Sep 05 '21 13:09 gernophil

I have met the same problem.

tpfLZ avatar Nov 08 '21 12:11 tpfLZ

same problem QQ

onepiece010938 avatar Nov 23 '21 02:11 onepiece010938

Has anyone solved the problem?

jiangxinhao2020 avatar Jan 08 '22 03:01 jiangxinhao2020

if you use coco format, please check class. then you should confirm the path you train,i make a mistake on training path.

songyangsun avatar May 07 '22 13:05 songyangsun

i have met the same problems. how can solve this problem? i have solved this problem today! if u meet the same problem, you can try to adjust training parameters to train the model again because the previous model cann't sgement.

renxingaming avatar Feb 10 '23 08:02 renxingaming

我遇到了同样的问题。如何解决这个问题?我今天解决了这个问题!如果遇到同样的问题,可以尝试调整训练参数来再次训练模型,因为之前的模型无法训练。

请问,怎样调整训练参数呢?

jiubie12 avatar Jul 22 '23 15:07 jiubie12

出现这个问题是因为测试集中某张图像没有目标被分割出。

------------------ 原始邮件 ------------------ 发件人: "WXinlong/SOLO" @.>; 发送时间: 2023年7月22日(星期六) 晚上11:05 @.>; @.@.>; 主题: Re: [WXinlong/SOLO] if 'caption' in anns[0]: IndexError: list index out of range (#169)

我遇到了同样的问题。如何解决这个问题?我今天解决了这个问题!如果遇到同样的问题,可以尝试调整训练参数来再次训练模型,因为之前的模型无法训练。

请问,怎样调整训练参数呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

renxingaming avatar Jul 23 '23 14:07 renxingaming

那如果测试集中某张图片的确没有目标怎么办

yunhuiming avatar Jan 27 '24 06:01 yunhuiming