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 rotate #7713

Merged
merged 6 commits into from
Jul 3, 2023
Merged

port rotate #7713

merged 6 commits into from
Jul 3, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Jun 30, 2023

This PR also acts on #7703 (comment).

cc @vfdev-5

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 30, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7713

Note: Links to docs will display an error until the docs builds have been completed.

❌ 7 New Failures, 2 Unrelated Failures

As of commit 77866b9:

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base c3e9256:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 , LGTM when green

elif input_type is PIL.Image.Image:
input = F.to_image_pil(input)
elif input_type is datapoints.BoundingBox:
kwargs.setdefault("format", datapoints.BoundingBoxFormat.XYXY)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this logic be part of make_bounding_box's contract? (same for the dtype logic)

This is the kind of changes that makes me think we should already be moving away from the utils in common_utils for input generation, as suggested earlier #7562 (comment).

We can delay it but we'll have to do it eventually anyway, and IMO the earlier we do it, the more control we'll have.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will have a go at it after this PR before I port anything more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #7717

test/test_transforms_v2_refactored.py Outdated Show resolved Hide resolved
@pmeier pmeier merged commit 2d4484f into pytorch:main Jul 3, 2023
@pmeier pmeier deleted the port/rotate branch July 3, 2023 12:24
@github-actions
Copy link

github-actions bot commented Jul 3, 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 Aug 25, 2023
Reviewed By: matteobettini

Differential Revision: D48642318

fbshipit-source-id: dfcb7ca6a837104bc0acfe3ba2f66bb9ecef267b
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