-
Notifications
You must be signed in to change notification settings - Fork 382
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
fix: Fixed rotation of img + target #784
Conversation
Codecov Report
@@ Coverage Diff @@
## main #784 +/- ##
==========================================
+ Coverage 96.00% 96.05% +0.05%
==========================================
Files 130 130
Lines 4882 4898 +16
==========================================
+ Hits 4687 4705 +18
+ Misses 195 193 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Thanks for the PR!
Following the refactoring of rotation, some edge cases weren't handled. This PR restarts fresh and introduces the following modifications:
rotate
to introducerotate_sample
RandomRotate
Here is a snippet to show this:
which produces:
top row = image
bot row = target
1st col = original
2nd col = 90° rotation without expansion
3rd col = 90° rotation with expansion
(without expansion, the box is out of the image)
Any feedback is welcome!