endernewton / tf-faster-rcnn

Tensorflow Faster RCNN for Object Detection
https://arxiv.org/pdf/1702.02138.pdf
MIT License
3.65k stars 1.58k forks source link

Has anyone modified the size of the anchor? Which files should I modify? thank you very much! #399

Open goucong opened 5 years ago

goucong commented 5 years ago

Has anyone modified the size of the anchor? Which files should I modify? thank you very much!

rnsandeep commented 5 years ago

Yes you can change the anchor size. https://github.com/endernewton/tf-faster-rcnn/blob/master/experiments/scripts/train_faster_rcnn.sh Line 23. You can add more or edit already existing ones. Make sure you do the same in the corresponding testing script while you test.

goucong commented 5 years ago

Thank you for your reply, but it seems that only changing this file can't achieve results.

rnsandeep commented 5 years ago

If you want to change the anchor sizes this is the place to change, if you are expecting to improve accuracy it depends on the problem and the values you have changed. A mere change of anchors sizes don't always get you increase in accuracy.