otx.core.data.manager.dataset_manager#
Datumaro Helper.
Classes
The aim of DatasetManager is support datumaro functions at easy use. |
- class otx.core.data.manager.dataset_manager.DatasetManager[source]#
Bases:
object
The aim of DatasetManager is support datumaro functions at easy use.
All kind of functions implemented in Datumaro are supported by this Manager. Since DatasetManager just wraps Datumaro’s function, All methods are implemented as static method.
- static auto_split(task: str, dataset: Dataset, split_ratio: List[Tuple[str, float]]) dict [source]#
Automatically split the dataset: train –> train/val.
- static export_dataset(dataset: Dataset, output_dir: str, data_format: str, save_media=True)[source]#
Export the Datumaro Dataset.
- static import_dataset(data_root: str, data_format: str, subset: str | None = None) dict [source]#
Import dataset.