-
Notifications
You must be signed in to change notification settings - Fork 43
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
How to normalize data if I have dataset not for everyday? #14
Comments
hi @manapshymyr-OB , |
@VSainteuf in that case I will have an array with shape 1xC, right? |
@VSainteuf i think I figured out (I got 8x1048576, because my imgae 1024 by 1024). So for each pixel of each channel, I have mean and std. |
Yes
Yes, but you are not processing the complete image at once right ? You are supposed to crop the image with the polygons of each agricultural parcel in your AOI. Then your dataset will have shape NxTxCxS with N the number of parcels, and S the varying number of pixels in each parcel. |
I have the Planet dataset, which is already cropped by geometry |
OK I'm not sure what the question is anymore, let me know if you need clarification on one point! |
I am still confused regarding the normalization shapes. Now I have samples with different sizes in terms of the temporal, while the same for channel and pixel size (they are the same because I translated them into 1024X1024), so >> Tx10x1048576. I am trying to normalize channel-wise, and not sure about the shape of the mean array. I am concatenating all npy-s into one so it will be (Tx10x1048576) and calculate the mean for each channel. Would it be the size of (10, )? I |
yes if you have time series of varying length the best option is to compute the channelwise mean across all samples and dates. So you end up with mean and std of shape (C,) |
I am getting this error: |
I am encountering this error during the validation step (I would not ask this if I got this during the training too...). and during the validation: |
are you giving different arguments to the train and val data loaders ? Any idea why the behaviour is different between train and val ? |
They are exactly the same. I found out that during the training the shape of the |
Any idea how to work with varying sizes of unordered temporal data? |
@VSainteuf any suggestions? |
Can you please have a look at the last two comments on this issue #12?
I have a dataset with shapes:
(142, 8, 1048576)
(159, 8, 1048576)
(151, 8, 1048576)
How should I normalize such a dataset?
The text was updated successfully, but these errors were encountered: