joe-siyuan-qiao / DetectoRS

DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: list index out of range

wuhaonanBOB opened this issue · comments

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.

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.

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

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.