Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SpecAugment's Time Warping and SpecAugment wrapper #3622

Open
gau-nernst opened this issue Sep 27, 2023 · 1 comment
Open

Implement SpecAugment's Time Warping and SpecAugment wrapper #3622

gau-nernst opened this issue Sep 27, 2023 · 1 comment

Comments

@gau-nernst
Copy link

🚀 The feature

TimeStretch is not in SpecAugment. It should be Time Warping instead. Time Warping does not change the spectrogram shape, but "warp" the content.

I want to propose the following changes:

  1. Remove the note that TimeStretch is proposed in SpecAugment. I think it is not correct.
  2. Implement Time Warping.
  3. Implement a SpecAugment wrapper that contains Time Warping, Frequency Masking, and Time masking, and accepts the same parameters as noted in the original paper (W, F, mF, T, p, mT). Perhaps the parameter name can be changed for better clarity.

Furthermore, we can also include SpecAugment policies as given by the paper i.e. LibriSpeech basic (LB), LibriSpeech double (LD), Switchboard mild (SM) and Switchboard strong (SS), so that the users can just call SpecAugment(policy="LB") for example.

Motivation, pitch

As stated above.

Alternatives

No response

Additional context

No response

@pkorobov
Copy link

Agree, according to the SpecAugment paper it should do sparse image warping on a spectrogram, but it seems to do quite a different thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants