Skip to content

port image type conversion transforms to prototype API #5640

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

Merged
merged 8 commits into from
Apr 4, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 18, 2022

This is a 1-to-1 port of the old transformations. This should serve as discussion basis.

@facebook-github-bot
Copy link

facebook-github-bot commented Mar 18, 2022

💊 CI failures summary and remediations

As of commit ec1622c (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Collaborator Author

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

The overarching question is: do we want to have a ConvertImageType transform that takes all kind of image types and converts them to a fixed format? That could unify all three of the transforms below. As output formats, I would only allow tensor and PIL images for now.

pmeier added 2 commits March 29, 2022 17:53
Conflicts:
	torchvision/prototype/transforms/__init__.py
@pmeier pmeier requested a review from datumbox April 1, 2022 13:08
@pmeier pmeier marked this pull request as ready for review April 1, 2022 13:09
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

Overall looks good. Just a few questions:

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@datumbox datumbox merged commit 095cabb into pytorch:main Apr 4, 2022
@pmeier pmeier deleted the transforms/image-conversion branch April 4, 2022 16:24
facebook-github-bot pushed a commit that referenced this pull request Apr 6, 2022
Summary:
* port image type conversion transforms to prototype API

* implement proposal for image type conversion

* add deprecation warnings

* appease mypy

Reviewed By: NicolasHug

Differential Revision: D35393162

fbshipit-source-id: e1be4ecfc2c018d24431e66da7d98d32967944a1

Co-authored-by: Vasilis Vryniotis <[email protected]>
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.

4 participants