Skip to content

Adjust adjust_* transforms #3222

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 3 commits into from
Jan 7, 2021
Merged

Adjust adjust_* transforms #3222

merged 3 commits into from
Jan 7, 2021

Conversation

voldemortX
Copy link
Contributor

PR for #3219, I checked the adjust_* functions (I count 6 of them) and corresponding random transform classes (count 2).
Other than adjust_hue() , I only find adjust_gamma() does not support alpha channel. Others seem to have considered transparency with PIL images.
There is one other thing I need to check for sure though: 1-channel and 3-channel exactly represents grayscale and RGB for tensor images right?

cc @datumbox

@datumbox
Copy link
Contributor

datumbox commented Jan 7, 2021

@voldemortX Thanks a lot for your contributions, this is really helpful. I'll review the PR shortly.

Given #3227, do you think it's worth looking on the other methods to see if there other things we missed? It's totally up to you obviously because it depends on your bandwidth. Let me know. :)

@voldemortX
Copy link
Contributor Author

@voldemortX Thanks a lot for your contributions, this is really helpful. I'll review the PR shortly.

Given #3227, do you think it's worth looking on the other methods to see if there other things we missed? It's totally up to you obviously because it depends on your bandwidth. Let me know. :)

@datumbox Well, #3227 is already found and marked in the current doc. Also this time I checked again for other transforms to make sure nothing is missed in the new documentation. However, I mostly did everything by looking at the codes. Maybe if I do some actual testing I can find some hidden things? Or maybe we need another set of eyes on this thing just to be sure.

I do have some time every now and then, and I'd like to continue working on these things, for instance the Pad fill problem in #3227.

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.

@voldemortX LGTM!

Checking the code is the best option especially since you are very familiar with the specific part of the codebase. Thanks a lot for your contribution.

@datumbox datumbox merged commit 7325e1d into pytorch:master Jan 7, 2021
facebook-github-bot pushed a commit that referenced this pull request Jan 21, 2021
Summary:
* adjust_hue

* adjust_*

* colorjitter

Reviewed By: datumbox

Differential Revision: D25954551

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