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 inaccuracy in PerspectiveTransformation #585

Merged
merged 1 commit into from
Jan 18, 2020
Merged

Conversation

aleju
Copy link
Owner

@aleju aleju commented Jan 18, 2020

Fix an inaccuracy in PerspectiveTransform that can lead to
slightly misaligned transformations between images and
coordinate-based augmentables (e.g. bounding boxes). The problem
is more significant the smaller the images and larger the
scale values. It is also worsened by using fit_output.
The inaccuracy is caused by using H-1 and W-1 instead of
H and W.

Fix an inaccuracy in `PerspectiveTransform` that can lead to
slightly misaligned transformations between images and
coordinate-based augmentables (e.g. bounding boxes). The problem
is more significant the smaller the images and larger the
`scale` values. It is also worsened by using `fit_output`.
The inaccuracy is caused by using H-1 and W-1 instead of
H and W.
@codecov-io
Copy link

codecov-io commented Jan 18, 2020

Codecov Report

Merging #585 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #585   +/-   ##
=======================================
  Coverage   96.48%   96.48%           
=======================================
  Files          40       40           
  Lines       14548    14548           
=======================================
  Hits        14036    14036           
  Misses        512      512

@aleju aleju merged commit 339babc into master Jan 18, 2020
@aleju aleju deleted the fix_perspt_inaccuracy branch January 18, 2020 10:51
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