-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Deprecated F_t.center_crop, F_t.five_crop, F_t.ten_crop #2568
Conversation
- Updated docs - Put warning in the code - Updated tests
- fixed bug with transforms using generated grid - remains *_crop, blocked by pytorch#2568 - TODO: test_adjustments
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 a lot!
I only have one minor comment, but which can be addressed in a follow-up PR
@@ -64,22 +64,24 @@ def test_hflip(self): | |||
|
|||
def test_crop(self): | |||
script_crop = torch.jit.script(F_t.crop) |
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.
Do we want to change this to be F.crop
?
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.
Sounds good, I can change it in #2569
* Adapted almost all functional tensor tests on CPU/CUDA - fixed bug with transforms using generated grid - remains *_crop, blocked by #2568 - TODO: test_adjustments * Apply suggestions from code review Co-authored-by: Francisco Massa <[email protected]> * Fixed issues according to review * Split tests into two: cpu and cuda * Updated test_adjustments to run on CPU and CUDA Co-authored-by: Francisco Massa <[email protected]>
- Updated docs - Put warning in the code - Updated tests
* Adapted almost all functional tensor tests on CPU/CUDA - fixed bug with transforms using generated grid - remains *_crop, blocked by pytorch#2568 - TODO: test_adjustments * Apply suggestions from code review Co-authored-by: Francisco Massa <[email protected]> * Fixed issues according to review * Split tests into two: cpu and cuda * Updated test_adjustments to run on CPU and CUDA Co-authored-by: Francisco Massa <[email protected]>
Description:
Current implementation of
F_t.center_crop
,F_t.five_crop
,F_t.ten_crop
are not used byF.*_crop
methods andF_t.five_crop
,F_t.ten_crop
seem to have a bug: https://github.com/pytorch/vision/pull/1615/files#diff-c0702298c1651f8c03d065692608f5dbR92 with indices 1 and 2.