-
Notifications
You must be signed in to change notification settings - Fork 559
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
[Feature] Full angle range #1061
Conversation
I just realized that this repo already is working on 360 rotation detection :P |
I think your implementation is better and more flexible. |
@calcoloergosum Thank you for your contribution. We will incorporate your angle representation into the main branch as one of the default angle representations. |
@@ -80,8 +80,10 @@ def bbox_flip(self, bboxes, img_shape, direction): | |||
flipped = bboxes.copy() | |||
if direction == 'horizontal': | |||
flipped[:, 0] = img_shape[1] - bboxes[:, 0] - 1 | |||
flipped[:4] = flipped[[1, 0, 3, 2]].copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new line of code will produce incorrect image flips, especially for the original centered representation. Please check it and fix it.
elif direction == 'vertical': | ||
flipped[:, 1] = img_shape[0] - bboxes[:, 1] - 1 | ||
flipped[:4] = flipped[[1, 0, 3, 2]].copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new line of code will produce incorrect image flips, especially for the original centered representation. Please check it and fix it.
NOTE: This PR alone does not make training work.
Thank you for your amazing codebase.
Motivation
Resolve #386 #565 #902 #1045 . Sometimes we want the full range of angle.
Modification
angle_version
called "full360".Use cases (Optional)
Anything that is not rotation invariant shaped objects.
For example:
Note
For code in this PR, bounding box is defined to be the clockwise -
(lt, rt, br, bl)
or[(-,-), (-,+), (+,+), (+, -)]
.RBBoxAssigner
should be modified accordingly.Checklist