Skip to content

Commit

Permalink
test push
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsson committed Mar 9, 2023
1 parent a7c958a commit 0319e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeleton/data/datapipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def reverb_aug(data,sample_rate): #rir =Room Impulse Respons
pad_data = torch.nn.functional.pad(data, (RIR.shape[1] - 1, 0)) #adds 0 before and after timeseries
aug= torch.nn.functional.conv1d(pad_data.unsqueeze(0), RIR.unsqueeze(0))[0] # rm none? # (minibatch,in_channels,iW), unsqueeze adds dim so it works with conv
return aug


#def pitch_aug(data, samplingrate, semitones): #only +- 4 or 5 semitones
# return librosa.effects.pitch_shift(data, samplingrate, semitones)
Expand Down

0 comments on commit 0319e33

Please sign in to comment.