This commit is contained in:
Stardust·减
2023-09-03 13:12:27 +08:00
committed by GitHub
parent ad0870d8e1
commit d9a5696cf4

View File

@@ -62,7 +62,7 @@ class DurationDiscriminator(nn.Module): #vits2
def forward(self, x, x_mask, dur_r, dur_hat, g=None):
x = torch.detach(x)
if g is not None:
if g is not None:
g = torch.detach(g)
x = x + self.cond(g)
x = self.conv_1(x * x_mask)