aac_datasets.check module

check_directory(
root: str,
verbose: int = 0,
datasets: Iterable[str] | str = ('audiocaps', 'clotho', 'macs', 'wavcaps'),
) dict[str, dict[str, int]][source]

Check which datasets are installed in root.

Parameters:
root: str

The directory to check.

verbose: int = 0

The verbose level. defaults to 0.

datasets: Iterable[str] | str = ('audiocaps', 'clotho', 'macs', 'wavcaps')

The datasets to search in root directory. defaults to DATASETS_NAMES.

Returns:

A dictionary of datanames containing the length of each subset.