Closed phtephanx closed 5 years ago
Thanks for fixing this.
The safest way to handle these issues is indeed to use axis=-1
for time and axis=-2
for frequency as we always assume those are the very last dimensions, but the number before can vary, e.g. channeles, batches.
Summary
Fixes #58
Proposed Changes
Increase
axis
values of bothtransforms.MaskSpectrogramFrequency
andtransforms.MaskSpectrogramTime
by+1
Code
Also try out with
MaskSpectrogramTime