Closed ksanjeevan closed 5 years ago
Great, thanks! Merging now.
@keunwoochoi - quick thing, since we went with the overriding_rate
option, should we allow for fixed_rate
to be None
for the augmentation use case? And then throw an error if both are None
.
@ksanjeevan Sounds good. With a nice docstring :)
@ksanjeevan I think we can keep working on this branch for that patch. Would you?
Oops I pushed it directly yesterday since it was small..
Oh cool. I'm deleting this branch.
Added tests for
TimeStretch
and some renaming.A few things:
TimeStretch
take in both(batch, channel, num_freq, time, complex=2)
as well as with no batch? I tried doing it butindex_select
returns a copy of the tensor and I couldn't think of a way to dotensor[:,:,slice]
where the dimensionslice
acts on can be set in a clean way.~ Addressed heretime
for the spectrogram time dimension name?phase_vocoder
with the results fromlibrosa.core.phase_vocoder
the same precision is needed for some operations, since the defaults cause minor differences and the algorithm does a big cumulative sum, that makes these differences pile up and the results differ significantly. I just changed the default dtype for that test and all matches well.