Remove audio padding before mel spec extraction

This commit is contained in:
Edresson Casanova 2022-04-28 15:40:16 -03:00
parent b78431d7e2
commit 1ff925d558
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