-
Notifications
You must be signed in to change notification settings - Fork 370
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 DeepGlobe dataset for land cover #578
Add DeepGlobe dataset for land cover #578
Conversation
We should cite https://openaccess.thecvf.com/content_cvpr_2018_workshops/papers/w4/Demir_DeepGlobe_2018_A_CVPR_2018_paper.pdf in the docstring in addition to the kaggle/codalab links |
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.
This looks great, thanks! I'm sure @calebrob6 will have more comments to add.
To get the tests to pass, you'll need to run black .
on the files and maybe correct a few things that flake8 catches. Will also need tests, see other tests/datasets/*
files for guidance.
Can you add a |
I made a small change in the I may not have done a great job in describing the issue, but I am happy to talk more about it. This fixed the plots for me, but there might be more elegant ways of doing this. |
Can you check to see what other |
I did check for Potsdam and Vaihingen. Vaihingen had a few label masks that did not include all the classes, and I saw incorrect plots with the existing code, but correct ones when I included my change. I could show sample images when we meet next. |
Can you post them here? |
Can you rebase your branch so that CI runs the new minimum version tests? There's a button on GitHub or you can do it manually from the command line. Also, can you add this dataset/datamodule to the documentation? You'll need to add a section to |
Yeah! |
|
So this PR uncovered some unexpected behavior in Generally, I think a good solution would be to force each dataset to have a color for each class (even background classes) then add an "ignore" class as an argument to |
…et of all class labels
Co-authored-by: Adam J. Stewart <[email protected]>
Co-authored-by: Adam J. Stewart <[email protected]>
…eo into add-DeepGlobe-dataset
This should be good to go now! |
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.
Almost there! Just a few remaining questions
Co-authored-by: Adam J. Stewart <[email protected]>
Running the tests results additional files being created during zip file extraction. We should add these to the repo so that running the tests doesn't result in new files in |
* add class for Deep Globe Land Cover dataset * add Lightning data module implementation for deepglobe land cover * fix formatting errors * fix urls, formats and add link for paper * add tests for deepglobe dataset and datamodule * fix a test case and a few more formatting error * add data.py and modify error match for data download * modify draw_semantic_segmentation_masks for cases when mask is a subset of all class labels * fix mypy error * add to docs for documentation * add deepglobe to the dataset lists csv * fix error in building docs * Update datamodules.rst * Update datasets.rst * Update data.py * Update utils.py * change file permissions of non_geo_datasets.csv * Add versionadded * Update torchgeo/datasets/deepglobelandcover.py Co-authored-by: Adam J. Stewart <[email protected]> * Change end of line sequence * Update tests/data/deepglobelandcover/data.py Co-authored-by: Adam J. Stewart <[email protected]> * exist_ok * Update tests/datasets/test_deepglobelandcover.py Co-authored-by: Adam J. Stewart <[email protected]> * Remove datamodule tests * Remove split monkeypatch * Running black * Add val percent to test conf * Sort filelist so indices are the same across platforms * Simplified the file and mask fns * Re-adding datamodule tests for coverage * Add sub-configs to test val_split_pct in the datamodule * Lets try it * Update tests/conf/deepglobelandcover_0.yaml Co-authored-by: Adam J. Stewart <[email protected]> * nulllllllll * ingore_zeros -> ignore_index Co-authored-by: saumyasinha <[email protected]> Co-authored-by: Caleb Robinson <[email protected]> Co-authored-by: Adam J. Stewart <[email protected]>
Here is a sample plot for the dataset. These are with alpha 0, 0.5, and 1 respectively.