Rwanda Field Boundary#
- class torchgeo.datasets.RwandaFieldBoundary(root='data', split='train', bands=('B01', 'B02', 'B03', 'B04'), transforms=None, download=False)[source]#
Bases:
NonGeoDatasetRwanda Field Boundary Competition dataset.
This dataset contains field boundaries for smallholder farms in eastern Rwanda. The Nasa Harvest program funded a team of annotators from TaQadam to label Planet imagery for the 2021 growing season for the purpose of conducting the Rwanda Field boundary detection Challenge. The dataset includes rasterized labeled field boundaries and time series satellite imagery from Planet’s NICFI program. Planet’s basemap imagery is provided for six months (March, April, August, October, November and December). Note: only fields that were big enough to be differentiated on the Planetscope imagery were labeled, only fields that were fully contained within the chips were labeled. The paired dataset is provided in 256x256 chips for a total of 70 tiles covering 1532 individual fields.
The labels are provided as binary semantic segmentation labels:
No field-boundary
Field-boundary
If you use this dataset in your research, please cite the following:
Note
This dataset requires the following additional library to be installed:
azcopy: to download the dataset from Source Cooperative.
Added in version 0.5.
- __init__(root='data', split='train', bands=('B01', 'B02', 'B03', 'B04'), transforms=None, download=False)[source]#
Initialize a new RwandaFieldBoundary instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
split (str) – one of “train” or “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
- Raises:
AssertionError – If split or bands are invalid.
DatasetNotFoundError – If dataset is not found and download is False.
- __len__()[source]#
Return the number of chips in the dataset.
- Returns:
length of the dataset
- Return type:
- plot(sample, show_titles=True, time_step=0, suptitle=None)[source]#
Plot a sample from the dataset.
- Parameters:
- Returns:
a matplotlib Figure with the rendered sample
- Raises:
RGBBandsMissingError – If bands does not include all RGB bands.
- Return type:
- __annotate_func__()#
The type of the None singleton.