-
Notifications
You must be signed in to change notification settings - Fork 444
Sat-SlideMix Augmentation #2742
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
base: main
Are you sure you want to change the base?
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.
Pull Request Overview
This PR adds a new augmentation method, Sat-SlideMix, which circularly shifts satellite images to generate additional training samples as described in the referenced paper.
- Introduces the sat_slidemix function in augmentations.py
- Implements input validation and image rolling for augmentation
Can we implement this in a way that is compatible with Kornia? |
Working on it |
Do we refer to the paper in the docstring? |
Not yes, still converting it to work with kornia images and masks. Will add it though. |
Adds Sat-SlideMix augmentation from the paper Data Augmentation Approaches for Satellite Imagery
I've made this into a Kornia augmentation so that it will work with both images and masks. This has some nice benefits like automatically sampling from a range of percentages to shift and random sampling which dim and direction to shift.
Example usage:
Sample 1
Sample 2
Sample 3
Sample 4