Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Chen committed Jul 16, 2020
1 parent f783365 commit 25738fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_gtzan(self):
def test_cmuarctic(self):
data = CMUARCTIC(self.path)
data[0]

def test_libritts(self):
data = LIBRITTS(self.path)
data[0]
Expand Down
10 changes: 5 additions & 5 deletions torchaudio/datasets/libritts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"http://www.openslr.org/60/train-clean-360.tar.gz":
"a84ef10ddade5fd25df69596a2767b2d",
"http://www.openslr.org/60/train-other-500.tar.gz":
"7b181dd5ace343a5f38427999684aa6f"
"7b181dd5ace343a5f38427999684aa6f",
}


Expand All @@ -40,10 +40,10 @@ def load_libritts_item(fileid: str,

normalized_text = utterance_id + ext_normalized_txt
normalized_text = os.path.join(path, speaker_id, chapter_id, normalized_text)

original_text = utterance_id + ext_original_txt
original_text = os.path.join(path, speaker_id, chapter_id, original_text)

file_audio = utterance_id + ext_audio
file_audio = os.path.join(path, speaker_id, chapter_id, file_audio)

Expand All @@ -52,8 +52,8 @@ def load_libritts_item(fileid: str,

# Load original text
with open(original_text) as ft:
original_utterance = ft.readline()
original_utterance = ft.readline()

# Load normalized text
with open(normalized_text, 'r') as ft:
normalized_utterance = ft.readline()
Expand Down

0 comments on commit 25738fe

Please sign in to comment.