otx.core.data.adapter.anomaly_dataset_adapter#

Anomaly Classification / Detection / Segmentation Dataset Adapter.

Classes

AnomalyBaseDatasetAdapter(task_type[, ...])

BaseDataset Adpater for Anomaly tasks inherited from BaseDatasetAdapter.

AnomalyClassificationDatasetAdapter(task_type)

Anomaly classification adapter inherited from AnomalyBaseDatasetAdapter.

AnomalyDetectionDatasetAdapter(task_type[, ...])

Anomaly detection adapter inherited from AnomalyBaseDatasetAdapter.

AnomalySegmentationDatasetAdapter(task_type)

Anomaly segmentation adapter inherited by AnomalyBaseDatasetAdapter and BaseDatasetAdapter.

class otx.core.data.adapter.anomaly_dataset_adapter.AnomalyBaseDatasetAdapter(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 Anomaly tasks inherited from BaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Get DatasetEntity.

class otx.core.data.adapter.anomaly_dataset_adapter.AnomalyClassificationDatasetAdapter(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: AnomalyBaseDatasetAdapter

Anomaly classification adapter inherited from AnomalyBaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Convert DatumaroDataset to DatasetEntity for Anomaly classification.

class otx.core.data.adapter.anomaly_dataset_adapter.AnomalyDetectionDatasetAdapter(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: AnomalyBaseDatasetAdapter

Anomaly detection adapter inherited from AnomalyBaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Conver DatumaroDataset to DatasetEntity for Anomaly detection.

class otx.core.data.adapter.anomaly_dataset_adapter.AnomalySegmentationDatasetAdapter(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: AnomalyBaseDatasetAdapter

Anomaly segmentation adapter inherited by AnomalyBaseDatasetAdapter and BaseDatasetAdapter.

get_otx_dataset() DatasetEntity[source]#

Conver DatumaroDataset to DatasetEntity for Anomaly segmentation.