Skip to content

Instantly share code, notes, and snippets.

@zilunpeng
Created March 23, 2021 21:05
Show Gist options
  • Save zilunpeng/e3e5d227abaaee0997bfd86b77da6f5b to your computer and use it in GitHub Desktop.
Save zilunpeng/e3e5d227abaaee0997bfd86b77da6f5b to your computer and use it in GitHub Desktop.
Create data loader. Code below is part of the wav2vec 2.0 inference notebook (https://git.io/JYeKX).
dev_clean_librispeech_data = torchaudio.datasets.LIBRISPEECH(data_path, url='dev-clean', download=False)
data_loader = torch.utils.data.DataLoader(dev_clean_librispeech_data, batch_size=1, shuffle=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment