rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.11k stars 4.11k forks source link

Too many wrong region proposal detection #497

Open ranju2015 opened 7 years ago

ranju2015 commented 7 years ago

weepingtoadfish_frame_0050

Hi friend, I have successfully trained my system with 4074 annotated regions and 40 classes. My total iteration was 70k. But when I test get detection and classification results like above. I appreciate your feedback if you have already gone through such problems.

ranju2015 commented 7 years ago

The problem stated above has been improved by setting __C.TEST.BBOX_REG = False during testing in config.py. However, the detected bounding boxes are not perfect. Please have a look at the image below. weepingtoadfish_frame_0660

Guys I need your suggestions for some improvement. I am using the ZF model. and done 100k iteration. The total number of class is 40 and and training configuration is given below.

andrewsilva9 commented 7 years ago

I was struggling with the same thing and setting that flag helped tremendously! Thanks! Any idea why this made such a big difference?

sodeypunk commented 7 years ago

Yes, i had the same issue as well. Not sure why the demo script didnt have this issue.

boyflytobeman commented 7 years ago

@sodeypunk @andrewsilva9 ,if __C.TEST.BBOX_REG = False ,the detection accuracy will drop, any other solution?

aum12 commented 7 years ago

@rbgirshick @ranju2015 Do you have any intuition as to why the spurious proposals are eliminated once bbox regression is disabled? It's observably clear that this change will impact localization as predictions are using the default anchor box scale/aspect ratio. But I'm not sure why this setting is removing the false positives?

gabrielssimoes commented 7 years ago

Same problem for me. Any body have some intuition to solve this issue? Recently I train an VGG16 in my own dataset and the detection with __C.TEST.BBOX_REG = True was terrible. When __C.TEST.BBOX_REG = False it is acceptable, mas not impressive such as described by the papers.

Regards!