-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Proto transform cleanup #6408
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
Proto transform cleanup #6408
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, this PR will also replace the |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Just an optional nit for your attention.
Summary: * fix TenCrop * use dispatchers for RandomPhotometricDistort * add convert_color_space dispatcher and use it in conversion transforms * fix convert_color_space naming scheme * add to_color_space method to Image feature * remove TODO from BoundingBox.to_format() * fix test * fix imports * fix passthrough * remove apply_recursively in favor of pytree * refactor BatchMultiCrop Reviewed By: datumbox Differential Revision: D38824225 fbshipit-source-id: 9f40885dd19e9ba701a02e209ab8839acca0fc76
This is cleanup for the prototype transforms. It includes the following changes that were put in individual commits for easier review:
TenCrop
transform. The calls for PIL and simple tensor images were missing thevertical_flip
flag.F.adjust_{brightness, saturation, contrast, hue}
dispatchers inRandomPhotometricDistort
rather than relying on theColorJitter
transform.convert_color_space
dispatcher and use it in theConvertColorSpace
as well as in the deprecatedGrayscale
andRandomGrayScale
transforms.