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

port tests for type conversion transforms #8003

Merged
merged 4 commits into from
Oct 2, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Sep 29, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 29, 2023

🔗 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 Pending

As of commit 9abf734 with merge base ee28bb3 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Member

@NicolasHug NicolasHug left a 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):
Copy link
Member

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?

test/test_transforms_v2_refactored.py Outdated Show resolved Hide resolved
@pmeier pmeier merged commit 48f8473 into pytorch:main Oct 2, 2023
@pmeier pmeier deleted the port-conversion branch October 2, 2023 18:41
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

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

facebook-github-bot pushed a commit that referenced this pull request Oct 31, 2023
Reviewed By: vmoens

Differential Revision: D50789086

fbshipit-source-id: 662427dbdccac525d81656195177f81ac6aaeaa7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants