Skip to content

Use glob in datasets instead of walk_files #1051

@vincentqb

Description

@vincentqb

Replace walk_files+filter in datasets by globing,

  • librispeech
  • libritts
  • speechcommands
  • tedlium
  • vctk
  • yesno

Example (noted in discussion):

walker = sorted(str(p) for p in Path(self._path).glob('*/*_no_hash_*.wav'))
  • Once this is done, we can deprecate torchaudio.datasets.utils.walk_files.

cc #910

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions