Skip to content
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 https://github.com/albu/albumentations/issues/182 #250

Merged
merged 1 commit into from
Apr 6, 2019

Conversation

BloodAxe
Copy link
Contributor

@BloodAxe BloodAxe commented Apr 6, 2019

This PR fixes bug with ShiftRotateScale when applied for bboxes in case of non-square images. The bug was caused by inconsistent representation of bboxes (normalized coordinates) and image coordinates (pixels) when applying affine transformation. It can be illustrated as shown below:

Original

Rotated_bug

After applying suggested in #182 denormalization, it seems to be fixed:

Rotated_fixed

@BloodAxe BloodAxe requested review from albu, ternaus and creafz April 6, 2019 18:52
@BloodAxe BloodAxe merged commit 6de2178 into master Apr 6, 2019
@BloodAxe BloodAxe deleted the bugfix/182 branch April 6, 2019 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants