-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Shouldn't have a +1
in the NMS implementation for the boxes width/height computation ?
#1872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same in the cuda implementation. |
Hi, Great questions! We have answered those questions in #826 (comment) . We handle Let us know if you have further questions! |
@fmassa I think it would make sense to specify in the documentation (or somewhere) that (x1, y1) is inclusive and (x2, y2) is not. That would be simpler than trying to pin it as working with continuous coordinates IMO (that's what OpenCV also does). |
@bmanga I think we can reference in the documentation the discussion thread in the attached link I sent, this way users have the full picture. |
@fmassa Agreed, a quick explanation + link would be good. I can create a PR if you'd like. |
Yes please! |
The standard is to have a bounding box defined as quoted here.
But in the NMS source code, there is no
+1
when computing the areas and intersection values. This also leaves a bug in the case of gettingunion = 0
, raising aNaN
error when computing theiou
.If the code is correct, what am I missing ? Shouldn't the documentation explain this better ?
Thanks.
The text was updated successfully, but these errors were encountered: