Skip to content

Commit

Permalink
updated the fusion method to use cat(Mel Spectrogram + Conditional Em…
Browse files Browse the repository at this point in the history
…bedding, F0 helper)
  • Loading branch information
AznamirWoW committed Jan 9, 2025
1 parent 5ed5d41 commit 2fa9ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvc/lib/algorithm/generators/refinegan.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ def forward(self, mel: torch.Tensor, f0: torch.Tensor, g: torch.Tensor = None):

if g is not None:
# adding expanded speaker embedding
x += self.cond(g)
x = torch.cat([x, mel], dim=1)
mel += self.cond(g)
x = torch.cat([mel, x], dim=1)

for ups, res, down in zip(
self.upsample_blocks,
Expand Down

0 comments on commit 2fa9ea8

Please sign in to comment.