From 89f12289b4688ae4f65eb72f254da9c95943ea19 Mon Sep 17 00:00:00 2001 From: krishnakalyan3 Date: Sat, 12 Dec 2020 22:11:09 +0100 Subject: [PATCH] change to Path libritts --- torchaudio/datasets/libritts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchaudio/datasets/libritts.py b/torchaudio/datasets/libritts.py index ba7243222dc..57d85f99ae5 100644 --- a/torchaudio/datasets/libritts.py +++ b/torchaudio/datasets/libritts.py @@ -125,7 +125,7 @@ def __init__( download_url(url, root, hash_value=checksum) extract_archive(archive) - walker = sorted([str(p.stem) for p in Path(lt_data._path).glob('*/*/*' + self._ext_audio)]) + walker = sorted([str(p.stem) for p in Path(self._path).glob('*/*/*' + self._ext_audio)]) self._walker = list(walker) def __getitem__(self, n: int) -> Tuple[Tensor, int, str, str, int, int, str]: