Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
seungheondoh committed Aug 21, 2023
1 parent 60726a4 commit bbb909c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lpmc/music_captioning/datasets/msd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def load_audio(self, audio_path, file_type):
audio = pad
random_idx = random.randint(0, audio.shape[-1]-self.n_samples)
audio_tensor = torch.from_numpy(np.array(audio[random_idx:random_idx+self.n_samples]).astype('float32'))
audio_tensor = torch.randn(16000*10)
return audio_tensor

def __getitem__(self, index):
Expand Down

0 comments on commit bbb909c

Please sign in to comment.