Closed heshuting555 closed 5 years ago
@heshuting555 Your model did not converage, check some hyper-paramters.
Thank you~
How do you solve this problem?
I have the same question, how did you solve it?
You can print the outputs, May be outputs is none
发自我的iPhone
------------------ Original ------------------ From: bhaktatejas922 <notifications@github.com> Date: Wed,Sep 4,2019 1:28 PM To: open-mmlab/mmdetection <mmdetection@noreply.github.com> Cc: heshuting555 <1173718914@qq.com>, State change <state_change@noreply.github.com> Subject: Re: [open-mmlab/mmdetection] [Test Error] in loadRes if 'caption' in anns[0]: (#805)
I have the same question, how did you solve it?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.
(mmlab) wangzy@lab517:~/Documents/ShutingHe/Detection/mmdetection$ python tools/test.py configs/cascade_rcnn_r50_fpn_1x.py weights/mask_rcnn_r50_fpn_2x.pth --eval bbox --out ok.pkl
loading annotations into memory... Done (t=0.01s) creating index... index created! unexpected key in source state_dict: bbox_head.fc_cls.weight, bbox_head.fc_cls.bias, bbox_head.fc_reg.weight, bbox_head.fc_reg.bias, bbox_head.shared_fcs.0.weight, bbox_head.shared_fcs.0.bias, bbox_head.shared_fcs.1.weight, bbox_head.shared_fcs.1.bias, mask_head.convs.0.conv.weight, mask_head.convs.0.conv.bias, mask_head.convs.1.conv.weight, mask_head.convs.1.conv.bias, mask_head.convs.2.conv.weight, mask_head.convs.2.conv.bias, mask_head.convs.3.conv.weight, mask_head.convs.3.conv.bias, mask_head.upsample.weight, mask_head.upsample.bias, mask_head.conv_logits.weight, mask_head.conv_logits.bias
missing keys in source state_dict: bbox_head.1.fc_reg.bias, bbox_head.1.shared_fcs.1.bias, bbox_head.0.fc_reg.weight, bbox_head.2.fc_cls.bias, bbox_head.1.shared_fcs.1.weight, bbox_head.1.shared_fcs.0.bias, bbox_head.2.shared_fcs.0.weight, bbox_head.2.shared_fcs.0.bias, bbox_head.0.shared_fcs.0.bias, bbox_head.1.fc_reg.weight, bbox_head.2.fc_reg.bias, bbox_head.0.shared_fcs.0.weight, bbox_head.0.fc_cls.weight, bbox_head.2.fc_cls.weight, bbox_head.1.fc_cls.weight, bbox_head.1.fc_cls.bias, bbox_head.2.shared_fcs.1.weight, bbox_head.0.fc_reg.bias, bbox_head.1.shared_fcs.0.weight, bbox_head.2.fc_reg.weight, bbox_head.0.fc_cls.bias, bbox_head.0.shared_fcs.1.weight, bbox_head.2.shared_fcs.1.bias, bbox_head.0.shared_fcs.1.bias
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 1/1, 1.3 task/s, elapsed: 1s, ETA: 0s writing results to ok.pkl Starting evaluate bbox Loading and preparing results... Traceback (most recent call last): File "tools/test.py", line 189, in
main()
File "tools/test.py", line 178, in main
coco_eval(result_file, eval_types, dataset.coco)
File "/home/wangzy/anaconda3/envs/mmlab/lib/python3.6/site-packages/mmdet/core/evaluation/coco_utils.py", line 26, in coco_eval
coco_dets = coco.loadRes(result_file)
File "/home/wangzy/anaconda3/envs/mmlab/lib/python3.6/site-packages/pycocotools/coco.py", line 318, in loadRes
if 'caption' in anns[0]:
IndexError: list index out of range
Can you help me fix it. Thank you for your help