-
Notifications
You must be signed in to change notification settings - Fork 2k
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
negative bbox coordinate after random transform #988
Comments
I seem to recall clipping the boxes if that happens. Did this actually cause a crash for you? |
I found the filter_annotations function is call before random_transform_group function, Is there any other function clip the boxes? there is no crash, but it maybe cause anchor select incorrectly, I found this problem when I tried to add anchor-free branch to the model architecture. |
I'm not sure. However, there is an old open issue regarding transformations that transform annotations partially out of the image canvas: #223. However, so far nobody has really had any practical issues with the current behaviour so we haven't done anything. |
I don't think we clip boxes after random transformations. @sUtomorrow is this causing an issue for you, or was it just an observation? I see your point on anchor selection, do you think it will cause large enough errors? |
Any update on this @sUtomorrow ? |
I'm sorry no reply for a long time. |
This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When the target frame is at the edge of the image, for example, x1, y1, x2, y2 is 0, 0, 200, 200, then after random transform the bbox with keras-retinanet.utils.transform.transform_aabb function, there may cause negative bbox coordinate.
The text was updated successfully, but these errors were encountered: