unsky / FPN

Feature Pyramid Networks for Object Detection
522 stars 263 forks source link

How do you deal with empty rois #64

Open twmht opened 6 years ago

twmht commented 6 years ago

Hi,

Since FPN has a equation to map rois to different levels.

larger rois would be fed into deeper layers.

In the code (https://github.com/unsky/FPN/blob/master/lib/rpn/proposal_target_layer.py#L164), If there are no rois can be fed into the level (i.e., num_index==0), how do you deal with this issue?