FAIR1M#
- class torchgeo.datasets.FAIR1M(root='data', split='train', transforms=None, download=False, checksum=False)[source]#
Bases:
NonGeoDatasetFAIR1M dataset.
The FAIR1M dataset is a dataset for remote sensing fine-grained oriented object detection.
Dataset features:
15,000+ images with 0.3-0.8 m per pixel resolution (1,000-10,000 px)
1 million object instances
5 object categories, 37 object sub-categories
three spectral bands - RGB
images taken by Gaofen satellites and Google Earth
Dataset format:
images are three-channel tiffs
labels are xml files with PASCAL VOC like annotations
Dataset classes:
Passenger Ship
Motorboat
Fishing Boat
Tugboat
other-ship
Engineering Ship
Liquid Cargo Ship
Dry Cargo Ship
Warship
Small Car
Bus
Cargo Truck
Dump Truck
other-vehicle
Van
Trailer
Tractor
Excavator
Truck Tractor
Boeing737
Boeing747
Boeing777
Boeing787
ARJ21
C919
A220
A321
A330
A350
other-airplane
Baseball Field
Basketball Court
Football Field
Tennis Court
Roundabout
Intersection
Bridge
If you use this dataset in your research, please cite the following paper:
Added in version 0.2.
- __init__(root='data', split='train', transforms=None, download=False, checksum=False)[source]#
Initialize a new FAIR1M dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
split (str) – one of “train”, “val”, 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
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.
Changed in version 0.5: Added split and download parameters.
- __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.