SODA#
- class torchgeo.datasets.SODAA(root='data', split='train', bbox_orientation='horizontal', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetSODA-A dataset.
The SODA-A dataset is a high resolution aerial imagery dataset for small object detection.
Dataset features:
2513 images
872,069 annotations with oriented bounding boxes
9 classes
Dataset format:
Images are three channel .jpg files.
Annotations are in json files
Classes:
Airplane
Helicopter
Small vehicle
Large vehicle
Ship
Container
Storage tank
Swimming-pool
Windmill
Other
If you use this dataset in your research, please cite the following paper:
Added in version 0.7.
- __init__(root='data', split='train', bbox_orientation='horizontal', transforms=None, download=False, checksum=False)[source]#
Initialize a new instance of SODA-A dataset.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
split (Literal['train', 'val', 'test']) – one of “train”, “val”, or “test”
bbox_orientation (Literal['oriented', 'horizontal']) – one of “oriented” or “horizontal”
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 split or bbox_orientation argument is invalid
DatasetNotFoundError – If dataset is not found and download is False.
- __annotate_func__()#
The type of the None singleton.