Skip to content

[feature request]- torchvision.transforms.ColorJitter Enhancement #545

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

Closed
neherh opened this issue Jul 12, 2018 · 3 comments
Closed

[feature request]- torchvision.transforms.ColorJitter Enhancement #545

neherh opened this issue Jul 12, 2018 · 3 comments

Comments

@neherh
Copy link

neherh commented Jul 12, 2018

Currently, the ColorJitter function only takes in a single float value for the parameters brightness, contrast, saturation and hue. The value is chosen uniformly from [max(0, 1 - brightness), 1 + brightness] (minus hue). What would improve this function is to be able to set your min and max bounds by inputting a tuple for each parameter.

@fmassa
Copy link
Member

fmassa commented Jul 13, 2018

That sounds like an useful extension.
Do you mind sending a PR that keeps backward-compatibility?

@yaox12
Copy link
Contributor

yaox12 commented Jul 16, 2018

I'm working on it

@vishwakftw
Copy link
Contributor

I think this can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants