Skip to content

port RandomPhotoMetricDistort to prototype transforms #5663

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 2 commits into from
Mar 31, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 23, 2022

Addresses #5542

@facebook-github-bot
Copy link

facebook-github-bot commented Mar 23, 2022

💊 CI failures summary and remediations

As of commit 408b98f (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
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.

The implementation looks good. The problem is that this approach is bound to be quite slow as there will be lots of dispatching involved. When later we try to make the transforms as fast as possible, what are we going todo? We would need to remove the composability that you have and call the low-level kernels.

I'm OK to merge now as we shouldn't try to optimize the speed prematurely but that's something to keep in mind if we keep using composition as an idiom from many other transforms.

@pmeier pmeier merged commit ec1c2a1 into pytorch:main Mar 31, 2022
@pmeier pmeier deleted the transforms/photometricdistort branch March 31, 2022 13:08
facebook-github-bot pushed a commit that referenced this pull request Apr 6, 2022
Reviewed By: NicolasHug

Differential Revision: D35393168

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