create_subset
- create_subset(dataset_path: Path, subset_path: Path, label_dirs: list, split_file_name: str, reduction: int | float = 100)[source]
Script to create a subset of a dataset.
- Parameters:
dataset_path (
Path) – Path to the dataset to create a subset of.subset_path (
Path) – Path to the subset directory.label_dirs (
list) – List of label directories in the dataset, from these the labels will be copied.split_file_name (
Path) – Name of the split file.reduction (
int, optional) – Factor to reduce the dataset size by. Defaults to 100.