ETCI2021 Img/Label pairing
See original GitHub issueI think there might be a bug based on visualizing some of the training patches. Shown below are VV, VH, Water mask, Flood mask for some sample:
Run the following a few times to reproduce:
from torchgeo.datasets import ETCI2021
import numpy as np
import matplotlib.pyplot as plt
ds = ETCI2021("data/", split="train", download=False)
for i in np.random.choice(len(ds), size=10, replace=False):
img1 = np.rollaxis(ds[i]["image"][:3].numpy(),0,3)
img2 = np.rollaxis(ds[i]["image"][3:].numpy(),0,3)
mask1 = ds[i]["mask"][0].numpy()
mask2 = ds[i]["mask"][1].numpy()
fig, axs = plt.subplots(1,4,figsize=(12,3))
axs[0].imshow(img1)
axs[0].axis("off")
axs[1].imshow(img2)
axs[1].axis("off")
axs[2].imshow(mask1)
axs[2].axis("off")
axs[3].imshow(mask2)
axs[3].axis("off")
plt.tight_layout()
plt.show()
plt.close()
@adamjstewart – this is another example of a dataset that will need a custom trainer. You can interpret the imagery as a 6 band input, however there are two label masks (you want to predict the flood mask, and you are always given the water mask).
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
torchgeo - bytemeta
Switch ETCI2021 to use MLHub when it is released on MLHub. adamjstewart ... ETCI2021 Img/Label pairing. adamjstewart ... Auto download of ETCI2021 is...
Read more >Manage Domain Aliases - Hashicorp/Terraform-Provider ... - IssueHint
This issue has been created since 2021-05-18. Add functionality to manage domain aliases (resource and data source). resource "googleworkspace_domain_alias" " ...
Read more >robmarkcole / satellite-image-deep-learning - Новости
So improtant this pair gets their own section. GDAL is THE command line tool for reading and writing raster and vector geospatial data...
Read more >satellite-image-deep-learning - GitHubTrending
Generally speaking, change detection methods are applied to a pair of images ... streamlit-img-label -> a graphical image annotation tool using streamlit.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Moving forward, let’s visualize what comes out of a dataset before we merge them. These semantic bugs are the real killers. Like, this dataset is fully tested but takes me several hours of debugging to actually use – not a great experience for any users.
The problem above is caused by glob.glob not returning files in sorted order and is fixed by putting
sorted(...)
everywhere. I’m going to commit this fix directly to main.