IDTReeS#
- class torchgeo.datasets.IDTReeS(root='data', split='train', task='task1', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetIDTReeS dataset.
The IDTReeS dataset is a dataset for tree crown detection.
Dataset features:
RGB Image, Canopy Height Model (CHM), Hyperspectral Image (HSI), LiDAR Point Cloud
Remote sensing and field data generated by the National Ecological Observatory Network (NEON)
0.1 - 1m resolution imagery
Task 1 - object detection (tree crown delination)
Task 2 - object classification (species classification)
Train set contains 85 images
Test set (task 1) contains 153 images
Test set (task 2) contains 353 images and tree crown polygons
Dataset format:
optical - three-channel RGB 200x200 geotiff
canopy height model - one-channel 20x20 geotiff
hyperspectral - 369-channel 20x20 geotiff
point cloud - Nx3 LAS file (.las), some files contain RGB colors per point
shapely files (.shp) containing polygons
csv file containing species labels and other metadata for each polygon
Dataset classes:
ACPE
ACRU
ACSA3
AMLA
BETUL
CAGL8
CATO6
FAGR
GOLA
LITU
LYLU3
MAGNO
NYBI
NYSY
OXYDE
PEPA37
PIEL
PIPA2
PINUS
PITA
PRSE2
QUAL
QUCO2
QUGE2
QUHE2
QULA2
QULA3
QUMO4
QUNI
QURU
QUERC
ROPS
TSCA
If you use this dataset in your research, please cite the following paper:
This dataset requires the following additional library to be installed:
laspy to read lidar point clouds
Added in version 0.2.
- __init__(root='data', split='train', task='task1', transforms=None, download=False, checksum=False)[source]#
Initialize a new IDTReeS dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
split (str) – one of “train” or “test”
task (str) – ‘task1’ for detection, ‘task2’ for detection + classification (only relevant for split=’test’)
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 laspy 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.