-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: latlon handling in inference dataset #65
Conversation
FYI there's something more to be fixed about this. There's a failing test revealing that |
Thanks @kvantricht ! I will take a look |
@gabrieltseng whenever we make this fix, it's very important to crosscheck compatibility with presto-worldcereal/presto/dataset.py Line 332 in 9aed8f4
We're suffering already for 3 days in the inference pipeline figuring out what's going on and one of the issues we face is inconsistency between the lat/lon values and the EO data values, because |
@gabrieltseng i'm working on this one, because it's the cause of failing tests in my updated inference dataset. What I'm wondering: why in |
when doing a search for when this |
The only test that in that case no longer makes a lot of sense as it is now is this one: https://github.com/WorldCereal/presto-worldcereal/blob/main/tests/test_dataset.py#L69 This test was taken from openmapflow. Also here I don't fully get what kind of inference is supposed to be tested here. If it's a true flattened 2D inference test, and if I've already adapted What I'd need from @gabrieltseng is some insights into whether or not I'm overlooking something on the need of working with a dataframe instead. Will be pushing some changes to the branch to make the discussion more concrete. |
So the proposed changes including the fixes of the test are in another PR, addressed specifically in 817da45 |
Fix has been applied as part of #103. No more need for this PR. |
@gabrieltseng the inference dataset had a bug in latlon handling. Only "worked" for square patches but even then contained a bug. This should go through a meshgrid. Made a fix for this. I'm not really familiar with
einops.rearrange
so please check if I did this the right way. One approved, we should be ok to move this right intomain
.