Skip to content

Commit

Permalink
fix(train): decouple lf0 predictor from speaker embeddings (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrettConway authored Apr 30, 2023
1 parent df0dd61 commit 7ab47f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/so_vits_svc_fork/modules/decoders/f0.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(
def forward(self, x, norm_f0, x_mask, spk_emb=None):
x = torch.detach(x)
if spk_emb is not None:
spk_emb = torch.detach(spk_emb)
x = x + self.cond(spk_emb)
x += self.f0_prenet(norm_f0)
x = self.prenet(x) * x_mask
Expand Down

0 comments on commit 7ab47f4

Please sign in to comment.