Skip to content

Commit 43f955a

Browse files
committed
Fix index typo
1 parent ca72582 commit 43f955a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/fastspeech2_libritts/fastspeech2_dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def __init__(
119119
self.mel_length_threshold = mel_length_threshold
120120
self.speakers_map = speakers_map
121121
self.speakers = [self.speakers_map[i.split("_")[0]] for i in self.utt_ids]
122+
print("Speaker: utt_id", list(zip(self.speakers, self.utt_ids)))
122123
self.f0_stat = np.load(f0_stat)
123124
self.energy_stat = np.load(energy_stat)
124125

@@ -142,7 +143,7 @@ def generator(self, utt_ids):
142143
duration_file = self.duration_files[i]
143144
f0_file = self.f0_files[i]
144145
energy_file = self.energy_files[i]
145-
speaker_id = self.speakers[0]
146+
speaker_id = self.speakers[i]
146147

147148
items = {
148149
"utt_ids": utt_id,

0 commit comments

Comments
 (0)