tlc.integration.super_gradients.datasets.detection_dataset¶
Detection Dataset for SuperGradients.
Module Contents¶
Classes¶
Class |
Description |
|---|---|
API¶
- class DetectionDataset(
- table: Table | Url | Path | str,
- image_column_name: str = 'image',
- label_column_name: str = 'bbs.bb_list.label',
- **kwargs: Any,
Bases:
super_gradients.training.datasets.detection_datasets.detection_dataset.DetectionDatasetA dataset for training SuperGradients detection models, populated from a 3LC Table.
Note
SuperGradients models expect the labels to be contiguous from 0 to num_classes - 1. If the label value map keys are not contiguous, a mapping is applied for the
DetectionDatasetand the reverse is applied in theDetectionMetricsCollectionCallback. In such cases, model predictions outside of 3LC will have contiguous labels, which are not consistent with the keys in the 3LC Table.- Parameters:
table – The table or URL to the table to read image paths and ground truth boxes from.
image_column_name – The name of the column containing the image paths.
label_column_name – The value path to the ground truth labels.