-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Fixed rotate with expand inconsistency #5677
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
Fixed rotate with expand inconsistency #5677
Conversation
💊 CI failures summary and remediationsAs of commit 260d021 (more details on the Dr. CI page):
1 failure not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@vfdev-5 could you elaborate on what inconsistency are you fixing? It's worth adding some details on the PR. Should this be considered a bug fix? Also why do we change the tests? Is it to provide better corner cases? Or the previous test inputs would fail if you keep them the same on this PR? |
@datumbox thanks for asking for clarifications ! I updated PR's description. The issue is with output size which is different for torch image and PIL image if input has odd size (e.g. 7, 33). Current tests are not using odd sizes thus CI does not complain. I changed updated the tests such that:
|
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.
LGTM, thanks for the work and the clarifications.
Please tag the PR accordingly before merging.
Summary: * Fixed rotate with expand inconsistency between torch vs PIL on odd-sized images * Update functional_tensor.py (Note: this ignores all push blocking failures!) Reviewed By: datumbox Differential Revision: D35216781 fbshipit-source-id: 74b5179278634b9289f7a939a7a88fb0c5f37fd0
Description:
This PR fixes output size inconsistency of odd-sized images.
Before:
Now: