From d9a5696cf426cc696f162748df35b96d13a81d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sun, 3 Sep 2023 13:12:27 +0800 Subject: [PATCH] fix --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 87026d3..a8e1e9f 100644 --- a/models.py +++ b/models.py @@ -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)