PatternNet#
- class torchgeo.datasets.PatternNet(root='data', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoClassificationDatasetPatternNet dataset.
The PatternNet dataset is a dataset for remote sensing scene classification and image retrieval.
Dataset features:
30,400 images with 6-50 cm per pixel resolution (256x256 px)
three spectral bands - RGB
38 scene classes, 800 images per class
Dataset format:
images are three-channel jpgs
Dataset classes:
airplane
baseball_field
basketball_court
beach
bridge
cemetery
chaparral
christmas_tree_farm
closed_road
coastal_mansion
crosswalk
dense_residential
ferry_terminal
football_field
forest
freeway
golf_course
harbor
intersection
mobile_home_park
nursing_home
oil_gas_field
oil_well
overpass
parking_lot
parking_space
railway
river
runway
runway_marking
shipping_yard
solar_panel
sparse_residential
storage_tank
swimming_pool
tennis_court
transformer_station
wastewater_treatment_plant
If you use this dataset in your research, please cite the following paper:
- __init__(root='data', transforms=None, download=False, checksum=False)[source]#
Initialize a new PatternNet 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.