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 – The directory to check.

  • verbose – The verbose level. defaults to 0.

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

Returns:

A dictionary of datanames containing the length of each subset.