forked from mrq/DL-Art-School
fix tensor lengths
This commit is contained in:
parent
bbacffb790
commit
c28d8770c7
|
@ -162,7 +162,7 @@ class UnsupervisedAudioDataset(torch.utils.data.Dataset):
|
|||
|
||||
output = {
|
||||
'clip': clips[0],
|
||||
'clip_lengths': audio_norm.shape[-1],
|
||||
'clip_lengths': torch.tensor(audio_norm.shape[-1]),
|
||||
'path': filename,
|
||||
}
|
||||
if self.should_resample_clip:
|
||||
|
|
Loading…
Reference in New Issue
Block a user