-
Notifications
You must be signed in to change notification settings - Fork 328
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
Add AugMix #407
Add AugMix #407
Conversation
Currently, I have only implemented the main layers used in the implementation ( color, contrast, brightness, sharpness is not implemented) I have also re-coded Lastly, the layer isn't vectorized. I believe it's better this way for now and we can further vectorized the layer in a follow-up layer (if possible) |
Also, this implementation is highly inspired by @szacho's wonderful implementation. Thanks! |
Be sure to include this in references! Thanks! |
Thanks for the PR @quantumalaviya. I will review it as soon as I can. |
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.
Some preliminary comments @quantumalaviya!
Great work, this is coming along great. Definitely a substantial effort, and happy to review again once we have the comments above addressed. Thanks!
It's not the worst thing in the world to repeat yourself occasionally in code, but if possible we should use our layers' _augment_image methods with a static provided If this isn't possible let me know |
1 similar comment
It's not the worst thing in the world to repeat yourself occasionally in code, but if possible we should use our layers' _augment_image methods with a static provided If this isn't possible let me know |
I can't exactly think of a way to reduce the lines of code here. I considered using it for the If you have something specific in mind, let me know. |
Sounds good, let me play around with it a bit more! Thanks! |
edb7d87
to
1ff4491
Compare
1ff4491
to
3d2ca52
Compare
Thanks for the hard work on this one @quantumalaviya ! it will be a wonderful feature soon! |
Also fixed sample usages in FMix and MixUp in docstrings |
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.
minor changes, think I believe it will look pretty good.
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.
Wonderful!
Can you re-run the example script with all of the changes to ensure it still works as we expect? Then if so, I believe we are ready to go!
Thank you @quantumalaviya for the contribution! This is great, and the API looks good. In the future, we may want to refactor the helper methods to be reused in their corresponding KPLs, but this is an implementation detail not an API change - so this is great |
* adding augmix * add augmix with demo * add augmix test * add augmix * Update aug_mix.py * Update aug_mix.py * Update aug_mix_demo.py * updating augmix with changes * init commit with review comments * fix linting issues * removing RandomShear assignment in constructor * review comments part 2 * review comments part 2 fix * review comments part 3 * change variable names * fix lint issues * edit serialization test * edit demo to use utils * Update augmix Co-authored-by: Luke Wood <[email protected]>
* adding augmix * add augmix with demo * add augmix test * add augmix * Update aug_mix.py * Update aug_mix.py * Update aug_mix_demo.py * updating augmix with changes * init commit with review comments * fix linting issues * removing RandomShear assignment in constructor * review comments part 2 * review comments part 2 fix * review comments part 3 * change variable names * fix lint issues * edit serialization test * edit demo to use utils * Update augmix Co-authored-by: Luke Wood <[email protected]>
* adding augmix * add augmix with demo * add augmix test * add augmix * Update aug_mix.py * Update aug_mix.py * Update aug_mix_demo.py * updating augmix with changes * init commit with review comments * fix linting issues * removing RandomShear assignment in constructor * review comments part 2 * review comments part 2 fix * review comments part 3 * change variable names * fix lint issues * edit serialization test * edit demo to use utils * Update augmix Co-authored-by: Luke Wood <[email protected]>
closes #40
Moreover, added util functions from keras to support translation and rotation layers.