-
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
port tests for type conversion transforms #8003
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8003
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 9abf734 with merge base ee28bb3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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 @pmeier. We also need a test for PilToTensor
?
@@ -5046,3 +5046,67 @@ def test_transform_error_cuda(self): | |||
ValueError, match="Input tensor should be on the same device as transformation matrix and mean vector" | |||
): | |||
transform(input) | |||
|
|||
|
|||
def make_image_numpy(*args, **kwargs): |
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.
make_image_pil
is only ever used in this file (test/test_transforms_v2_consistency.py
), yet it lives in common_utils.py
. Maybe we should align where we put these make_input
stuff?
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Reviewed By: vmoens Differential Revision: D50789086 fbshipit-source-id: 662427dbdccac525d81656195177f81ac6aaeaa7
cc @vfdev-5