Remove audio padding before mel spec extraction

This commit is contained in:
Edresson Casanova
2022-05-07 13:12:09 +02:00
committed by Eren Gölge
parent fbdf76b2fc
commit 60034674f9
+1 -1
View File
@@ -115,8 +115,8 @@ class GANDataset(Dataset):
audio, mel = self.cache[idx]
else:
audio = self.ap.load_wav(wavpath)
audio, _ = self._pad_short_samples(audio)
mel = self.ap.melspectrogram(audio)
audio, mel = self._pad_short_samples(audio, mel)
else:
# load precomputed features