-
Notifications
You must be signed in to change notification settings - Fork 295
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
disable speed perturbation by default #1176
disable speed perturbation by default #1176
Conversation
We should probably do this, even though it may make some of the recipes not fully reproducible (i.e. it would require to change the learning rate schedules and num-epochs). |
It doesn’t help anymore? |
Not really. The thing is when the amount of data reaches a certain point,
speed perturbation stops bringing performance improvement to the system and
would be a waste of space and time. So we figure that we can leave a switch
and let users decide whether they want it or not.
…On Thu, Jul 20, 2023 at 8:39 PM Piotr Żelasko ***@***.***> wrote:
It doesn’t help anymore?
—
Reply to this email directly, view it on GitHub
<#1176 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOON42GPJHMYBJCV2X7Y6HTXRERHNANCNFSM6AAAAAA2RCZYGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We did experiments on librispeech dataset, the performance of speed-pertur is the same as no speed-pertur (3 times epochs). |
Somehow slightly worse than with perturb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can use:
if speed_perturb and "train" in partition:
applied requested changes to the latest commit
…On Sun, Jul 23, 2023 at 6:38 PM Yifan Yang ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Maybe you can use:
if speed_perturb and "train" in partition:
—
Reply to this email directly, view it on GitHub
<#1176 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOON42FKI56BULFBYYARSUDXRT5K7ANCNFSM6AAAAAA2RCZYGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I suppose we could do this:
to incorporate with the new `speed-perturb` arg, we could set the default value of this arg to False, but give it a True value in the `prepare.sh` script of respective recipes. Starters could easily reproduce the results by running `prepare.sh` without us modifying `num-epochs` and `lr-epochs` in the training scripts of individual models. But still, this solution is
not fully foolproof.
…On Thu, Jul 20, 2023 at 5:29 PM Daniel Povey ***@***.***> wrote:
We should probably do this, even though it may make some of the recipes
not fully reproducible (i.e. it would require to change the learning rate
schedules and num-epochs).
It might make sense to actually change the LR schedules and epochs at the
same time. This would not be fully
foolproof, since some people will have previously-dumped non-perturbed
features on disk. But it will ensure that
from a fresh checkout things would be basically reproducible.
(if README files have example usages, we could perhaps just write the
alternative command lines that you would use
if the features were not dumped with speed perturbation, with the
num-epochs and if applicable lr-epochs multiplied by 3.)
—
Reply to this email directly, view it on GitHub
<#1176 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOON42G2LREQT4OS2A4OKK3XRD27DANCNFSM6AAAAAA2RCZYGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There is already a PR (sorry IDK the PR#) to change the arg to false in the
prepare.sh scripts.
…On Thu, Jul 27, 2023 at 5:43 PM zr_jin ***@***.***> wrote:
I suppose we could do this:
to incorporate with the new `speed-perturb` arg, we could set the default
value of this arg to False,
but give it a True value in the `prepare.sh` script of respective recipes.
Starters could easily
reproduce the results by running `prepare.sh` without us modifying
`num-epochs` and `lr-epochs`
in the training scripts of individual models. But still, this solution is
not fully foolproof.
On Thu, Jul 20, 2023 at 5:29 PM Daniel Povey ***@***.***>
wrote:
> We should probably do this, even though it may make some of the recipes
> not fully reproducible (i.e. it would require to change the learning
rate
> schedules and num-epochs).
> It might make sense to actually change the LR schedules and epochs at
the
> same time. This would not be fully
> foolproof, since some people will have previously-dumped non-perturbed
> features on disk. But it will ensure that
> from a fresh checkout things would be basically reproducible.
> (if README files have example usages, we could perhaps just write the
> alternative command lines that you would use
> if the features were not dumped with speed perturbation, with the
> num-epochs and if applicable lr-epochs multiplied by 3.)
>
> —
> Reply to this email directly, view it on GitHub
> <#1176 (comment)>,
or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AOON42G2LREQT4OS2A4OKK3XRD27DANCNFSM6AAAAAA2RCZYGE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#1176 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLO5U2PKSNARHMSRDFQTXSIZ5LANCNFSM6AAAAAA2RCZYGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Left a minor comment. Otherwise, it looks good to me.
egs/aidatatang_200zh/ASR/local/compute_fbank_aidatatang_200zh.py
Outdated
Show resolved
Hide resolved
1. changed the naming scheme from `speed-perturb` to `perturb-speed` to align with the librispeech recipe >> https://github.com/k2-fsa/icefall/blob/00256a766921dd34a267012b0e2b8ff7d538f0e6/egs/librispeech/ASR/local/compute_fbank_librispeech.py#L65 2. changed arg type for `perturb-speed` to str2bool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.