otx.core.data.adapter.visual_prompting_dataset_adapter#
Visual Prompting Dataset Adapter.
Classes
|
Visual prompting adapter inherited from SegmentationDatasetAdapter. |
- class otx.core.data.adapter.visual_prompting_dataset_adapter.VisualPromptingDatasetAdapter(use_mask: bool = False, *args, **kwargs)[source]#
Bases:
SegmentationDatasetAdapter
Visual prompting adapter inherited from SegmentationDatasetAdapter.
It converts DatumaroDataset –> DatasetEntity for visual prompting tasks. To handle masks, this adapter is inherited from SegmentationDatasetAdapter.
- get_otx_dataset() DatasetEntity [source]#
Convert DatumaroDataset to DatasetEntity for Visual Prompting.