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

Fix masking bug for TTS Aligner #6677

Merged
merged 1 commit into from
May 18, 2023
Merged

Fix masking bug for TTS Aligner #6677

merged 1 commit into from
May 18, 2023

Conversation

redoctopus
Copy link
Collaborator

What does this PR do ?

Fixes a masking bug where boolean values were inverted from what was expected. Reverted change from PR #5653.

Collection: TTS

Changelog

  • Added check for == 0 (applied to the input mask) back to the Aligner forward call. Otherwise the mask is applied incorrectly, as the values are flipped from what is expected in the Aligner module.

PR Type:

  • New Feature
  • Bugfix
  • Documentation

Additional Information

Signed-off-by: Jocelyn Huang <[email protected]>
Copy link
Collaborator

@rlangman rlangman left a comment

Choose a reason for hiding this comment

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

It is weird that the aligner forward() method reverses the standard convention for mask inputs (it should flip the entries internally before calling masked_fill_). But for backwards compatibility I suppose we should not modify the aligner interface.

@redoctopus redoctopus merged commit 57824e0 into main May 18, 2023
8 checks passed
@redoctopus redoctopus deleted the tts_aligner_fix branch May 18, 2023 23:30
hsiehjackson pushed a commit to hsiehjackson/NeMo that referenced this pull request Jun 2, 2023
Signed-off-by: Jocelyn Huang <[email protected]>
Signed-off-by: hsiehjackson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants