FireRisk#
- class torchgeo.datasets.FireRisk(root='data', split='train', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoClassificationDatasetFireRisk dataset.
The FireRisk dataset is a dataset for remote sensing fire risk classification.
Dataset features:
91,872 images with 1 m per pixel resolution (320x320 px)
70,331 and 21,541 train and val images, respectively
three spectral bands - RGB
7 fire risk classes
images extracted from NAIP tiles
Dataset format:
images are three-channel pngs
Dataset classes:
high
low
moderate
non-burnable
very_high
very_low
water
If you use this dataset in your research, please cite the following paper:
Added in version 0.5.
- __init__(root='data', split='train', transforms=None, download=False, checksum=False)[source]#
Initialize a new FireRisk 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
splitargument is invalidDatasetNotFoundError – If dataset is not found and download is False.