load.dataset
Usage
Firstly, to load a dataset instance, you need to initiliaze a FRDCDataset
object, providing the site, date, and version.
We recommend using the FRDCDatasetPreset
module to load explicitly known datasets.
Then, we can use the ds
object to load objects of the dataset:
ar
is a stacked NDArray of the hyperspectral bands of shape (H x W x C)order
is a list of strings, containing the names of the bands, ordered according to the channels ofar
d
is a dictionary of the hyperspectral bands of shape (H x W), keyed by the band namesbounds
is a list of bounding boxes, in the format ofRect
, anamedtuple
of x0, y0, x1, y1labels
is a list of strings, containing the labels of the bounding boxes, ordered according tobounds
I can't find a dataset!
Some datasets, especially new ones may be unregistered and you must specify the exact site / date / version of it.
See below for examples on how to format this.
site="ds"
date="date"
version="ver"
site="ds"
date="date"
version="ver/01/data"
site="ds"
date="date"
version=None