faster-rcnn-resnet icon indicating copy to clipboard operation
faster-rcnn-resnet copied to clipboard

resnet-50 with ohem error

Open whmin opened this issue 6 years ago • 3 comments

when i run ./experiments/scripts/faster_rcnn_end2end.sh 0 ResNet-50 pascal_voc,i got a error: screenshot from 2017-11-08 21-08-43 i did not change the original code,but only replace the "num_classes" and "num_output", is there anyone can help me?Thank you very much!!! I am waiting here!

whmin avatar Nov 08 '17 13:11 whmin

@whmin it seems that some indexes contain non-integers. you can check the error location in code and add int() to these indexes. And where do you get the ResNet50 pre-trained model to implement it? I also want to try ResNet50 for my task. Thank you!

liuliu66 avatar Jan 11 '18 03:01 liuliu66

this error caused by numpy's version. try this modify in ./lib/roi_data_layer/layer.py

  • for x in [cls_prob[i, int(label)] for i, label in enumerate(labels)]]

quibbler123 avatar Apr 19 '18 07:04 quibbler123

@liuliu66 have you got the RetNet50 pre-trained model for faster-rcnn-ohem? hope for your reply~

maozezhong avatar Jun 14 '18 03:06 maozezhong