ChaBuD#
- class torchgeo.datasets.ChaBuD(root='data', split='train', bands=('B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', 'B8A', 'B09', 'B11', 'B12'), transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetChaBuD dataset.
ChaBuD is a dataset for Change detection for Burned area Delineation and is used for the ChaBuD ECML-PKDD 2023 Discovery Challenge.
Dataset features:
Sentinel-2 multispectral imagery
binary masks of burned areas
12 multispectral bands
356 pairs of pre and post images with 10 m per pixel resolution (512x512 px)
Dataset format:
single hdf5 dataset containing images and masks
Dataset classes:
no change
burned area
If you use this dataset in your research, please cite the following paper:
Note
This dataset requires the following additional library to be installed:
h5py to load the dataset
Added in version 0.6.
- __init__(root='data', split='train', bands=('B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', 'B8A', 'B09', 'B11', 'B12'), transforms=None, download=False, checksum=False)[source]#
Initialize a new ChaBuD dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
split (str) – one of “train” or “val”
transforms (Callable[[dict[str, Any]], dict[str, Any]] | None) – a function/transform that takes input sample and its target as entry and returns a transformed version
download (bool) – if True, download dataset and store it in the root directory
checksum (bool) – if True, check the MD5 of the downloaded files (may be slow)
- Raises:
AssertionError – If
splitorbandsarguments are invalid.DatasetNotFoundError – If dataset is not found and download is False.
DependencyNotFoundError – If h5py is not installed.
- __getitem__(index)[source]#
Return an index within the dataset.
Changed in version 0.8: Now returns a single T x C x H x W image.
- __len__()[source]#
Return the number of data points in the dataset.
- Returns:
length of the dataset
- Return type:
- __annotate_func__()#
The type of the None singleton.