-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] More Image Transforms (Brightness, Contrast, Hue) #271
Comments
Didn't spot because I was searching for hue, so thanks for bringing up! Yes makes sense to revisit after both of these are merged in. |
@alykhantejani Shall I work on #27 and continue the PR? |
Sure. Any reference on the same? I've seen contrast, saturation transforms
but not gamma and hue. Thanks.
…On Wed 27 Sep, 2017, 02:55 Alykhan Tejani ***@***.***> wrote:
@chsasank <https://github.com/chsasank> the ones in #27
<#27> probably need to be re-worked
a bit. I'll comment on that PR and see if the authors are willing to make
the change.
Do you want to start with Hue and Gamma (not present in #27
<#27>) and then we can do the
others (depending on the state of #27
<#27> then)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#271 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AI3_EyOhGizy2B6MSF-PNUPZdkBFZ2cDks5smWvYgaJpZM4PinGK>
.
|
Automatic Portrait Segmentation for Image Stylization uses rotation, scale and gamma. Do Deep Convolutional Nets Really Need to be Deep and Convolutional? uses hue, saturation and value. I'm sure there are other papers out there, but I managed to find these two fairly quickly. |
@chsasank you can also use Tensorflow's implementation as a guide: https://github.com/tensorflow/tensorflow/blob/r1.3/tensorflow/python/ops/image_ops_impl.py |
Thanks @Kaixhin, @alykhantejani ! TF implementation is really useful. I'll use function names and their parameters from there. |
@Kaixhin note that for Automatic Portrait Segmentation for Image Stylization, performing simple rotations actually harms performance of the final model (even if you take care of rotating and cropping the image such that no boundary artifacts are introduced due to rotation). A few links showing that some transforms might not be helpful:
But we can extend the transforms if you think it's worth it. |
@fmassa it's true that naively throwing a lot of augmentations at data may hurt performance, but there are some cases where this extended set can help in particular. I'm currently looking at something where lighting conditions vary a lot 😰 As an example of where these augmentations have been used in practice, here's the transformation code for Single Shot Multibox Detector in ChainerCV. |
I raised PR with hue and saturation transforms at #275. Will add more if interested :) |
Closing as these we're addressed in #275 |
It would be good to have some more image transforms (manual and random for augmentation). TensorFlow has the following:
The text was updated successfully, but these errors were encountered: