mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-19 21:00:11 +08:00
Add files via upload
This commit is contained in:
parent
5e22271924
commit
45f868acad
@ -16,7 +16,6 @@ from infer.lib.infer_pack.commons import get_padding, init_weights
|
|||||||
|
|
||||||
has_xpu = bool(hasattr(torch, "xpu") and torch.xpu.is_available())
|
has_xpu = bool(hasattr(torch, "xpu") and torch.xpu.is_available())
|
||||||
|
|
||||||
|
|
||||||
class TextEncoder256(nn.Module):
|
class TextEncoder256(nn.Module):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -1096,7 +1095,6 @@ class SynthesizerTrnMs256NSFsid_nono(nn.Module):
|
|||||||
head = int(z_p.shape[2] * (1.0 - rate.item()))
|
head = int(z_p.shape[2] * (1.0 - rate.item()))
|
||||||
z_p = z_p[:, :, head:]
|
z_p = z_p[:, :, head:]
|
||||||
x_mask = x_mask[:, :, head:]
|
x_mask = x_mask[:, :, head:]
|
||||||
nsff0 = nsff0[:, head:]
|
|
||||||
z = self.flow(z_p, x_mask, g=g, reverse=True)
|
z = self.flow(z_p, x_mask, g=g, reverse=True)
|
||||||
o = self.dec(z * x_mask, g=g)
|
o = self.dec(z * x_mask, g=g)
|
||||||
return o, x_mask, (z, z_p, m_p, logs_p)
|
return o, x_mask, (z, z_p, m_p, logs_p)
|
||||||
@ -1242,7 +1240,6 @@ class SynthesizerTrnMs768NSFsid_nono(nn.Module):
|
|||||||
head = int(z_p.shape[2] * (1.0 - rate.item()))
|
head = int(z_p.shape[2] * (1.0 - rate.item()))
|
||||||
z_p = z_p[:, :, head:]
|
z_p = z_p[:, :, head:]
|
||||||
x_mask = x_mask[:, :, head:]
|
x_mask = x_mask[:, :, head:]
|
||||||
nsff0 = nsff0[:, head:]
|
|
||||||
z = self.flow(z_p, x_mask, g=g, reverse=True)
|
z = self.flow(z_p, x_mask, g=g, reverse=True)
|
||||||
o = self.dec(z * x_mask, g=g)
|
o = self.dec(z * x_mask, g=g)
|
||||||
return o, x_mask, (z, z_p, m_p, logs_p)
|
return o, x_mask, (z, z_p, m_p, logs_p)
|
||||||
|
Loading…
Reference in New Issue
Block a user