Skip to content

Commit

Permalink
Update data_collator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalkum authored Jul 3, 2024
1 parent 66f63ec commit 701851d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def load_audio(self, filename):

if sr != 16000:
waveform = torchaudio.functional.resample(waveform, sr, 16000)

sr = 16000
# if waveform.shape[0] > 1:
# waveform = waveform[0]
# waveform = waveform.unsqueeze(0)
Expand Down

0 comments on commit 701851d

Please sign in to comment.