mjq11302010044 / RRPN_pytorch

RRPN in pytorch 1.0 ----- Arbitrary-Oriented Scene Text Detection via Rotation Proposals
MIT License
262 stars 56 forks source link

Why overlaps[overlaps > 1.00000001] = 0.0? #61

Closed MingtaoFu closed 4 years ago

MingtaoFu commented 4 years ago

https://github.com/mjq11302010044/RRPN_pytorch/blob/ec2b803c1da86d0f760ad20521cc6afc3b8026f9/maskrcnn_benchmark/structures/rboxlist_ops.py#L131

When I was testing the function rbbx_overlaps, I used two similar boxes

[[100, 100, 10, 5, 1]] and
[[100, 100, 10, 5, 0]]

The IoU calculated was 1.0217502.

So why do you set it to 0.0 instead of 1.0?

mjq11302010044 commented 4 years ago

@MingtaoFu Hi, there is no IoU > 1, the result is wrong. We recommand you to set height and width of a box larger than 16