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

SpecAugment: max_num_masks is at least min_num_masks #37

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

JackTemaki
Copy link
Contributor

I triggered one "last batch" in Tedlium that had only one sequence that was apparently so short that max_masks got smaller than min_masks for the time.

@@ -1,3 +1,4 @@
import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We mostly use import numpy in other code (consistent to import torch), here also in the repo (although not too much yet), but also in RETURNN.
Although this variant here is more the official recommended way.

So maybe for i6_models, we can independently decide now what variant to pick and then always keep it consistent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You merged without resolving this here, or commenting here. So what do you mean?

Copy link
Member

@albertz albertz Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah now I see #38. Shouldn't we have waited until this was decided?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is an independent non-critical issue, I would not delay this PR by that. If we decide different to this PR we can just change it back.

@albertz albertz changed the title max_num_masks is at least min_num_masks SpecAugment: max_num_masks is at least min_num_masks Oct 12, 2023
@JackTemaki JackTemaki merged commit 48ade42 into main Oct 12, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants