ADVANCE#
- class torchgeo.datasets.ADVANCE(root='data', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetADVANCE dataset.
The ADVANCE dataset is a dataset for audio visual scene recognition.
Dataset features:
5,075 pairs of geotagged audio recordings and images
three spectral bands - RGB (512x512 px)
10-second audio recordings
Dataset format:
images are three-channel jpgs
audio files are in wav format
Dataset classes:
airport
beach
bridge
farmland
forest
grassland
harbour
lake
orchard
residential
sparse shrub land
sports land
train station
If you use this dataset in your research, please cite the following paper:
Note
This dataset requires the following additional library to be installed:
scipy to load the audio files to tensors
- __init__(root='data', transforms=None, download=False, checksum=False)[source]#
Initialize a new ADVANCE dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
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:
DatasetNotFoundError – If dataset is not found and download is False.
DependencyNotFoundError – If scipy is not installed.
- __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.