Skip to content
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

added my data augmentation changes #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MatthewPierson90
Copy link
Contributor

These are the changes I've made regarding the data augmentation.

The change in create is what I believe is the appropriate change to fix the time series error I was getting before.

I have set up roll so that it rolls over time a given number of time steps (or percent).

So roll2 (or rolls2) will roll the time step by 2, rollp25 will roll the time series by 25% of the number of time steps.

@@ -331,7 +331,7 @@ def create_image_vars(
.clip(0, 1))

# Get the band count per index
nbands = int(src_ts.gw.nbands / len(list(set([Path(fn).parent.name for fn in image]))))
nbands = len(list(set([Path(fn).parent.name for fn in image])))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix to allow the use of single-band inputs.

The variable name is correct with this change. However, this change impacts the downstream 'flip' augmentation because I was previously using nbands as ntime.

See additional modifications in PR #19

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I actually wanted to ask you about flipfb, I currently have it turned off. Is the intention of it to reverse time, or is it to reverse the bands? If the latter, I imagine it would be best to have it off if I am using NRGB, correct? (since I don't want it reversing those?) Thanks!

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

Successfully merging this pull request may close these issues.

2 participants