Skip to content
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 a bug for ETCI2021 loader #861

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

daiki-kimura
Copy link
Contributor

Summary

Fix the ETCI 2021 Data loader by removing glob for each folder

Details

I tried ETCI2021DataModule (on Mac), then found a bug for loading the images.
The loaded images are sometimes not correct by each sorted glob

You can find the image file paths are not same (of vv and water_mask) in attached result.
Screen Shot 2022-10-20 at 18 16 52

This PR changes the loader will do sorted glob once in vv folder, and then use it for others.

@github-actions github-actions bot added the datasets Geospatial or benchmark datasets label Oct 20, 2022
@daiki-kimura
Copy link
Contributor Author

@microsoft-github-policy-service agree company="IBM"

@adamjstewart adamjstewart added this to the 0.3.2 milestone Oct 20, 2022
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea why the sorted glob didn't work? Are there additional files that were causing things to be shifted?

@daiki-kimura
Copy link
Contributor Author

I think this is the reason:
Screen Shot 2022-10-21 at 0 23 56

@adamjstewart adamjstewart merged commit 07a5069 into microsoft:main Oct 20, 2022
@daiki-kimura daiki-kimura deleted the fix-etci2021-loader branch October 24, 2022 01:37
@adamjstewart adamjstewart modified the milestones: 0.3.2, 0.4.0 Jan 23, 2023
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Fix a bug for ETCI2021 loader

* apply black

* Remove the slashes

* Removed unused lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants