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

Make v2 transforms authoring public #8787

Merged
merged 8 commits into from
Dec 9, 2024

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Dec 6, 2024

Closes #8721

This PR enables users to implement their own v2 transforms without using private methods. It was so far possible to implement v2 transforms, but private methods were necessary in order to fully support arbitrary inputs.

Concretely, we're now publicly exposing _transform(), _get_params() (as make_params()), and _check_inputs().

Note that existing users transforms that use these existing (private!) methods may break.

cc @vfdev-5

Copy link

pytorch-bot bot commented Dec 6, 2024

🔗 Helpful Links

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

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

❌ 24 New Failures

As of commit 70b47e7 with merge base 48f01de (image):

NEW FAILURES - The following jobs have failed:

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

@NicolasHug NicolasHug merged commit a9a726a into pytorch:main Dec 9, 2024
7 of 15 checks passed
@NicolasHug NicolasHug deleted the make-v2-authoring-public branch December 9, 2024 12:38
Copy link

github-actions bot commented Dec 9, 2024

Hey @NicolasHug!

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 Jan 15, 2025
Reviewed By: vmoens

Differential Revision: D68096271

fbshipit-source-id: 4e3098e101d2ac402c5dbf9d4ea38dd1d1d731c1
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.

make processing of arbitrary inputs to transforms.v2 public and document it
2 participants