otx.core.data.adapter.detection_dataset_adapter#

Detection Dataset Adapter.

Classes

DetectionDatasetAdapter(task_type[, ...])

Detection adapter inherited from BaseDatasetAdapter.

class otx.core.data.adapter.detection_dataset_adapter.DetectionDatasetAdapter(task_type: TaskType, train_data_roots: str | None = None, train_ann_files: str | None = None, val_data_roots: str | None = None, val_ann_files: str | None = None, test_data_roots: str | None = None, test_ann_files: str | None = None, unlabeled_data_roots: str | None = None, unlabeled_file_list: str | None = None, cache_config: Dict[str, Any] | None = None, encryption_key: str | None = None, **kwargs)[source]#

Bases: BaseDatasetAdapter

Detection adapter inherited from BaseDatasetAdapter.

It converts DatumaroDataset –> DatasetEntity for object detection, and instance segmentation tasks

get_otx_dataset() DatasetEntity[source]#

Convert DatumaroDataset to DatasetEntity for Detection.