Remove audio padding before mel spec extraction

This commit is contained in:
Edresson Casanova 2022-04-28 15:40:16 -03:00 committed by Eren Gölge
parent fbdf76b2fc
commit 60034674f9
1 changed files with 1 additions and 1 deletions

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