-
-
Notifications
You must be signed in to change notification settings - Fork 0
Encode "real world" positions of the input data #9
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
Comments
If the NetCDF data written by nowcasting_dataset includes the geospatial coordinates I'd say compute them on the fly. For satflow I computed them once and saved them alongside the other data, but that's only because I was just using Numpy arrays, so didn't have a simple way to recalculate them on the fly. |
Yeah, that sounds like a plan: |
Maybe converting "real world" positions to position encodings suitable for Perceiver could be done in the proposed thin data loading layer in |
This is implemented by @jacobbieker's absolute position encoding in nowcasting_dataloader: openclimatefix/nowcasting_dataloader#7 |
As well as (or instead of) Fourier-encoding the pixel position relative to the edge of the image (e.g. 'top left in the image'), it might be interesting to encode:
Should these encodings be computed on-the-fly during ML training? Or should the encodings be 'burnt into' the batches on disk produced by
nowcasting_dataset
? I'd perhaps lean towards the former but keen to hear opinions!The text was updated successfully, but these errors were encountered: