detectionmetrics.datasets package
Submodules
detectionmetrics.datasets.dataset module
detectionmetrics.datasets.gaia module
- class detectionmetrics.datasets.gaia.GaiaImageSegmentationDataset(dataset_fname: str)
Bases:
ImageSegmentationDataset
Specific class for GAIA-styled image segmentation datasets
- Parameters:
dataset_fname (str) – Parquet dataset filename
- class detectionmetrics.datasets.gaia.GaiaLiDARSegmentationDataset(dataset_fname: str)
Bases:
LiDARSegmentationDataset
Specific class for GAIA-styled LiDAR segmentation datasets
- Parameters:
dataset_fname (str) – Parquet dataset filename
- detectionmetrics.datasets.gaia.build_dataset(dataset_fname: str) Tuple[DataFrame, str, dict]
Build dataset and ontology dictionaries from GAIA-like dataset structure
- Parameters:
dataset_fname (str) – Parquet dataset filename
- Returns:
Dataset dataframe and directory, and onotology
- Return type:
Tuple[pd.DataFrame, str, dict]
detectionmetrics.datasets.goose module
- class detectionmetrics.datasets.goose.GOOSEImageSegmentationDataset(train_dataset_dir: str | None = None, val_dataset_dir: str | None = None, test_dataset_dir: str | None = None)
Bases:
ImageSegmentationDataset
Specific class for GOOSE-styled image segmentation datasets. All data can be downloaded from the official webpage (https://goose-dataset.de): train -> https://goose-dataset.de/storage/goose_2d_train.zip val -> https://goose-dataset.de/storage/goose_2d_val.zip test -> https://goose-dataset.de/storage/goose_2d_test.zip
- Parameters:
train_dataset_dir (str) – Directory containing training data
val_dataset_dir (str, optional) – Directory containing validation data, defaults to None
test_dataset_dir (str, optional) – Directory containing test data, defaults to None
- class detectionmetrics.datasets.goose.GOOSELiDARSegmentationDataset(train_dataset_dir: str | None = None, val_dataset_dir: str | None = None, test_dataset_dir: str | None = None)
Bases:
LiDARSegmentationDataset
Specific class for GOOSE-styled LiDAR segmentation datasets. All data can be downloaded from the official webpage (https://goose-dataset.de): train -> https://goose-dataset.de/storage/goose_3d_train.zip val -> https://goose-dataset.de/storage/goose_3d_val.zip test -> https://goose-dataset.de/storage/goose_3d_test.zip
- Parameters:
train_dataset_dir (str) – Directory containing training data
val_dataset_dir (str, optional) – Directory containing validation data, defaults to None
test_dataset_dir (str, optional) – Directory containing test data, defaults to None
- detectionmetrics.datasets.goose.build_dataset(data_type: str, data_suffix: str, label_suffix: str, train_dataset_dir: str | None = None, val_dataset_dir: str | None = None, test_dataset_dir: str | None = None) Tuple[dict, dict]
Build dataset and ontology dictionaries from GOOSE dataset structure
- Parameters:
train_dataset_dir (str) – Directory containing training data
data_type (str) – Data to be read (e.g. images or lidar)
data_suffix (str) – File suffix to be used to filter data (e.g., windshield_vis.png or vls128.bin)
label_suffix (str) – File suffix to be used to filter labels (e.g., vis_labelids.png or goose.label)
val_dataset_dir (str, optional) – Directory containing validation data, defaults to None
test_dataset_dir (str, optional) – Directory containing test data, defaults to None
- Returns:
Dataset and onotology
- Return type:
Tuple[dict, dict]
detectionmetrics.datasets.rellis3d module
- class detectionmetrics.datasets.rellis3d.Rellis3DImageSegmentationDataset(dataset_dir: str, split_dir: str, ontology_fname: str)
Bases:
ImageSegmentationDataset
Specific class for Rellis3D-styled image segmentation datasets. All data can be downloaded from the official repo (https://github.com/unmannedlab/RELLIS-3D): images -> https://drive.google.com/file/d/1F3Leu0H_m6aPVpZITragfreO_SGtL2yV labels -> https://drive.google.com/file/d/16URBUQn_VOGvUqfms-0I8HHKMtjPHsu5 split -> https://drive.google.com/file/d/1zHmnVaItcYJAWat3Yti1W_5Nfux194WQ ontology -> https://drive.google.com/file/d/1K8Zf0ju_xI5lnx3NTDLJpVTs59wmGPI6
- Parameters:
dataset_dir (str) – Directory where both RGB images and annotations have been extracted to
split_dir (str) – Directory where train, val, and test files (.lst) have been extracted to
ontology_fname (str) – YAML file contained in the ontology compressed directory
- class detectionmetrics.datasets.rellis3d.Rellis3DLiDARSegmentationDataset(dataset_dir: str, split_dir: str, ontology_fname: str)
Bases:
LiDARSegmentationDataset
Specific class for Rellis3D-styled LiDAR segmentation datasets. All data can be downloaded from the official repo (https://github.com/unmannedlab/RELLIS-3D): points -> https://drive.google.com/file/d/1lDSVRf_kZrD0zHHMsKJ0V1GN9QATR4wH labels -> https://drive.google.com/file/d/12bsblHXtob60KrjV7lGXUQTdC5PhV8Er split -> https://drive.google.com/file/d/1raQJPySyqDaHpc53KPnJVl3Bln6HlcVS ontology -> https://drive.google.com/file/d/1K8Zf0ju_xI5lnx3NTDLJpVTs59wmGPI6
- Parameters:
dataset_dir (str) – Directory where both points and labels have been extracted to
split_dir (str) – Directory where train, val, and test files (.lst) have been extracted to
ontology_fname (str) – YAML file contained in the ontology compressed directory
- detectionmetrics.datasets.rellis3d.build_dataset(dataset_dir: str, split_fnames: dict, ontology_fname: str) Tuple[dict, dict]
Build dataset and ontology dictionaries from Rellis3D dataset structure
- Parameters:
dataset_dir (str) – Directory where both RGB images and annotations have been extracted to
split_fnames – Dictionary that contains the paths where train, val, and test split files (.lst) have been extracted to
ontology_fname (str) – YAML file contained in the ontology compressed directory
- Returns:
Dataset and onotology
- Return type:
Tuple[dict, dict]