FireRisk#

class torchgeo.datasets.FireRisk(root='data', split='train', transforms=None, download=False, checksum=False)[source]#

Bases: NonGeoClassificationDataset

FireRisk 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:

  1. high

  2. low

  3. moderate

  4. non-burnable

  5. very_high

  6. very_low

  7. 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:
plot(sample, show_titles=True, suptitle=None)[source]#

Plot a sample from the dataset.

Parameters:
Returns:

a matplotlib Figure with the rendered sample

Return type:

Figure