otx.core.data.adapter#
OTX Core Data Adapter.
Functions
|
Returns a dataset class by task type. |
- otx.core.data.adapter.get_dataset_adapter(task_type: TaskType, train_type: TrainType, 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, **kwargs)[source]#
Returns a dataset class by task type.
- Parameters:
task_type – A task type such as ANOMALY_CLASSIFICATION, ANOMALY_DETECTION, ANOMALY_SEGMENTATION, CLASSIFICATION, INSTANCE_SEGMENTATION, DETECTION, CLASSIFICATION, ROTATED_DETECTION, SEGMENTATION.
train_type – train type such as Incremental and Selfsupervised. Selfsupervised is only supported for SEGMENTATION.
train_data_roots – the path of data root for training data
train_ann_files – the path of annotation file for training data
val_data_roots – the path of data root for validation data
val_ann_files – the path of annotation file for validation data
test_data_roots – the path of data root for test data
test_ann_files – the path of annotation file for test data
unlabeled_data_roots – the path of data root for unlabeled data
unlabeled_file_list – the path of unlabeled file list
kwargs – optional kwargs
Modules
Action Base / Classification / Detection Dataset Adapter. |
|
Anomaly Classification / Detection / Segmentation Dataset Adapter. |
|
Base Class for Dataset Adapter. |
|
Classification Dataset Adapter. |
|
Detection Dataset Adapter. |
|
Segmentation Dataset Adapter. |
|
Visual Prompting Dataset Adapter. |