rbgirshick / py-faster-rcnn

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

How to set a maximum size for anchor boxes? #658

Open hadign20 opened 7 years ago

hadign20 commented 7 years ago

I am trying to modify the faster rcnn to fit with small objects. But in my images, there are only small objects and they are almost the same size as each other. I have changed these:

RPN_MIN_SIZE: form 16 to 32
anchor base size: from 16 to 2

I have 2 question: 1) Are these modifications right, or there are better options? 2) Is there a way to set a maximum size for RPN or anchor base size? (since there is no large object and some generated anchors maybe redundant.)

xzy295461445 commented 7 years ago

Have you fitted it? I also train with small objects.