DLRSD#
- class torchgeo.datasets.DLRSDBase(root='data', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetShared base for DLRSD and DLRSDMultilabel.
The DLRSD dataset is a dataset for dense labeling of remote sensing imagery. It contains 2100 images of size 256x256 pixels across 21 scene categories (100 images per class), and is derived from the UC Merced Land Use Dataset.
Dataset features:
2100 images with 0.3m spatial resolution (256x256 px)
three spectral bands - RGB
Dataset classes:
airplane
bare soil
buildings
cars
chaparral
court
dock
field
grass
mobile home
pavement
sand
sea
ship
tanks
trees
water
This base class provides shared dataset assets and download/extract/verify plumbing for both the semantic segmentation and multi-label variants of DLRSD.
Added in version 0.10.
- __init__(root='data', transforms=None, download=False, checksum=False)[source]#
Initialize a new DLRSD-style dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
transforms (Callable[[dict[str, Tensor]], dict[str, Tensor]] | 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 SHA256 of the downloaded files (may be slow)
- Raises:
DatasetNotFoundError – If dataset is not found and download is False.
- class torchgeo.datasets.DLRSD(root='data', transforms=None, download=False, checksum=False)[source]#
Bases:
DLRSDBaseDLRSD semantic segmentation dataset.
The
DLRSDvariant provides pixel-level semantic segmentation annotations for 17 land cover classes.If you use this dataset in your research, please cite the following paper:
Added in version 0.10.
- __init__(root='data', transforms=None, download=False, checksum=False)[source]#
Initialize a new DLRSD dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
transforms (Callable[[dict[str, Tensor]], dict[str, Tensor]] | 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 SHA256 of the downloaded files (may be slow)
- Raises:
DatasetNotFoundError – If dataset is not found and download is False.
- class torchgeo.datasets.DLRSDMultilabel(root='data', transforms=None, download=False, checksum=False)[source]#
Bases:
DLRSDBaseDLRSD multi-label scene classification dataset.
The
DLRSDMultilabelvariant provides multi-label scene classification annotations with 17 label classes.If you use this dataset in your research, please cite the following papers:
Added in version 0.10.
- __init__(root='data', transforms=None, download=False, checksum=False)[source]#
Initialize a new DLRSDMultilabel dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
transforms (Callable[[dict[str, Tensor]], dict[str, Tensor]] | 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 SHA256 of the downloaded files (may be slow)
- Raises:
DatasetNotFoundError – If dataset is not found and download is False.