Skip to content

[Hackathon 7th] fix aishell3/vctk vc0/ernie #3928

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

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

Liyulingyue
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

Others

Copy link

paddle-bot bot commented Dec 3, 2024

Thanks for your contribution!

@mergify mergify bot added the T2S label Dec 3, 2024
@Liyulingyue Liyulingyue changed the title [Hackathon 7th] fix aishell3 vc0 [Hackathon 7th] fix aishell3/vctk vc0/ernie Dec 3, 2024
@@ -1115,7 +1115,8 @@ def forward(
paddle.reshape(xs_pad, (-1, self.odim))),
axis=-1)
mlm_loss = paddle.sum((loss * paddle.reshape(
mlm_loss_pos, [-1]))) / paddle.sum((mlm_loss_pos) + 1e-10)
mlm_loss_pos,
[-1]).astype(loss.dtype))) / paddle.sum((mlm_loss_pos) + 1e-10)
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the data format of loss and mlm_loss_pos? paddle.sum((mlm_loss_pos) + 1e-10) don't need a .astype?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mlm_loss_pos 大概是个 bool

@@ -171,7 +171,9 @@ def forward(
if paddle.sum(att_prev) == 0:
# if no bias, 0 0-pad goes 0
att_prev = 1.0 - make_pad_mask(enc_hs_len)
att_prev = att_prev / enc_hs_len.unsqueeze(-1)
unsqueeze_enc_hs_len = enc_hs_len.unsqueeze(-1).astype(
Copy link
Collaborator

Choose a reason for hiding this comment

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

why add new line here?

Copy link
Collaborator

@zxcd zxcd left a comment

Choose a reason for hiding this comment

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

LGTM

@zxcd zxcd merged commit 9d16002 into PaddlePaddle:develop Dec 9, 2024
5 checks passed
@Liyulingyue Liyulingyue deleted the aishell3_run branch March 5, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants