-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add MMFlood dataset #2450
base: main
Are you sure you want to change the base?
Add MMFlood dataset #2450
Conversation
@microsoft-github-policy-service agree |
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.
Thanks so much for the contribution, this is great! I have made a first pass of comments below. If you have questions about anything feel free to comment.
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.
Mostly looks good now, thanks for the hard work!
Only other comment I would make is that the recommended approach for these "curated" geospatial datasets (RasterDataset
s containing both images and masks) is to create a dummy dataset for the images, a dummy dataset for the masks, and an IntersectionDataset
that combines them. This usually lets you completely skip the __init__
and __getitem__
since it will inherit from RasterDataset
. See L7Irish
and L8Biome
for examples of these. Up to you whether or not you want to do this since you're almost done, but it could make the code a bit cleaner.
Thank you @adamjstewart for your comments. You managed all of your comments, including the conversion of
|
|
Ok. I should have implemented it using the
Yes, that is correct. To access this timestamp I should do as follows
I haven’t checked properly, but I think that should not be a big issue the current way it is implemented (i.e. do not retrieve the timestamp for each date), since I believe most of the overlapping tiles refers to the same date… |
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.
More comments to try to make the code simpler
This PR adds the MMFlood dataset from the paper "MMFlood: A Multimodal Dataset for Flood Delineation From Satellite Imagery". This is a Sentinel-1 + DEM dataset for Image Segmentation.
Original tif files are of variable resolution. Max height in pixels is 2147, max width in pixels is 2313 (which are the ones reported in the docs). The dataset also includes hydrography information, but it is not available for all acquisitions (currently the implemented class does not read such tif files).
Example with False Color representation