joe-siyuan-qiao / DetectoRS

DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution
Apache License 2.0
1.14k stars 176 forks source link

IndexError: list index out of range #52

Open wuhaonanBOB opened 4 years ago

wuhaonanBOB commented 4 years ago

I have trained my custom dataset with detectors_cascade_rcnn_r50_1x_coco.py and get checkpoints/latset.pth. but I test with command "python tools/test.py configs/detectors/detectors_cascade_rcnn_r50_1x_coco.py chectpoints/latest.pth --eval bbox" it occurs the follow error: image can you help me? thank you.

joe-siyuan-qiao commented 4 years ago

It seems that your model might predict labels that are not in the valid range allowed by your custom dataset. You probably need to change the number of classes somewhere in the config file.

wuhaonanBOB commented 4 years ago

Yes,thank you very much ,I have soved it.

ZhengHeZhe commented 4 years ago

Hello, I have also encountered this problem, but I have modified CLASSES and num_classes, and this problem still appears. Could you please tell me how you modified it? Thank you very much!

Yes,thank you very much ,I have soved it.