From 30cd33fe44aa7b478d7398d693c9bcb7471fdb1c Mon Sep 17 00:00:00 2001 From: James Betker Date: Tue, 31 Aug 2021 14:46:46 -0600 Subject: [PATCH] another fix --- codes/data/audio/wavfile_dataset.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/codes/data/audio/wavfile_dataset.py b/codes/data/audio/wavfile_dataset.py index 1c7e8199..169588b0 100644 --- a/codes/data/audio/wavfile_dataset.py +++ b/codes/data/audio/wavfile_dataset.py @@ -92,10 +92,6 @@ class WavfileDataset(torch.utils.data.Dataset): start = random.randint(0, gap-1) audio_norm = audio_norm[:, start:start+self.pad_to] - # Bail and try the next clip if there is not enough data. - if audio_norm.shape[-1] < self.min_sz: - return self[(index + 1) % len(self)] - output = { 'clip': audio_norm, 'path': filename,