⚗️ | Small fixes here and there
This commit is contained in:
3
data.py
3
data.py
@@ -67,5 +67,6 @@ class AudioDataset(Dataset):
|
||||
if audio_clip[0].shape[1] < low_audio_clip.shape[1]:
|
||||
low_audio_clip = low_audio_clip[:, :audio_clip[0].shape[1]]
|
||||
elif audio_clip[0].shape[1] > low_audio_clip.shape[1]:
|
||||
low_audio_clip = AudioUtils.pad_tensor(low_audio_clip, self.clip_length)
|
||||
target_len = audio_clip[0].shape[1]
|
||||
low_audio_clip = AudioUtils.pad_tensor(low_audio_clip, target_len)
|
||||
return ((audio_clip[0], low_audio_clip), (audio_clip[1], mangled_sample_rate))
|
||||
|
||||
Reference in New Issue
Block a user