1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

fix(rtrvc): parameter issue

This commit is contained in:
源文雨
2024-06-16 17:25:01 +09:00
parent 0d5cd347bc
commit 3a79d81907
2 changed files with 5 additions and 6 deletions

View File

@@ -188,7 +188,7 @@ class SynthesizerTrnMsNSFsid(nn.Module):
flow_head = head - 24
if flow_head < 0: flow_head = 0
dec_head = head - flow_head
m_p, logs_p, x_mask = self.enc_p(phone, pitch, phone_lengths, head)
m_p, logs_p, x_mask = self.enc_p(phone, pitch, phone_lengths, flow_head)
z_p = (m_p + torch.exp(logs_p) * torch.randn_like(m_p) * 0.66666) * x_mask
z = self.flow(z_p, x_mask, g=g, reverse=True)
z = z[:, :, dec_head : dec_head + length]