Skip to content

Commit

Permalink
change to Path libritts
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnakalyan3 committed Dec 12, 2020
1 parent 57da2e0 commit 89f1228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchaudio/datasets/libritts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 89f1228

Please sign in to comment.