Problem with custom intersection dataset #1749
-
Hi there, I'm using this dataset. That has 2 folders to train (gt and images). I'm using a RasterDataset. Both gt and images have the same extents and CRS:
Images:
I create the datasets like this:
Printing the datasets, I get:
To check the dataset, I'm creating a data loader to use with visualization code:
This is my visualization code:
Which gives me this error:
Checking the samples (
There is no 'mask' in it. How can I solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
By default, |
Beta Was this translation helpful? Give feedback.
-
Thanks!!!! |
Beta Was this translation helpful? Give feedback.
By default,
RasterDataset
assumes that all files are images, you have to tell it one of those is a mask. See https://torchgeo.readthedocs.io/en/stable/tutorials/custom_raster_dataset.html.