otx.core.data.adapter.action_dataset_adapter#

Action Base / Classification / Detection Dataset Adapter.

Classes

ActionBaseDatasetAdapter(task_type[, ...])

BaseDataset Adpater for Action tasks inherited by BaseDatasetAdapter.

ActionClassificationDatasetAdapter(task_type)

Action classification adapter inherited by ActionBaseDatasetAdapter and BaseDatasetAdapter.

ActionDetectionDatasetAdapter(task_type[, ...])

Action Detection adapter inherited by ActionBaseDatasetAdapter and BaseDatasetAdapter.

class otx.core.data.adapter.action_dataset_adapter.ActionBaseDatasetAdapter(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

BaseDataset Adpater for Action tasks inherited by BaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Get DatasetEntity.

Parameters:

datumaro_dataset (dict) – A Dictionary that includes subset dataset(DatasetEntity)

Return type:

DatasetEntity

class otx.core.data.adapter.action_dataset_adapter.ActionClassificationDatasetAdapter(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: ActionBaseDatasetAdapter

Action classification adapter inherited by ActionBaseDatasetAdapter and BaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Convert DatumaroDataset to DatasetEntity for Acion Classification.

class otx.core.data.adapter.action_dataset_adapter.ActionDetectionDatasetAdapter(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: ActionBaseDatasetAdapter

Action Detection adapter inherited by ActionBaseDatasetAdapter and BaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Convert DatumaroDataset to DatasetEntity for Acion Detection.