From 2fa9ea8e59ed13fc605a3c38a7634eaeb91ad115 Mon Sep 17 00:00:00 2001 From: AznamirWoW <101997116+AznamirWoW@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:36:31 -0500 Subject: [PATCH] updated the fusion method to use cat(Mel Spectrogram + Conditional Embedding, F0 helper) --- rvc/lib/algorithm/generators/refinegan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rvc/lib/algorithm/generators/refinegan.py b/rvc/lib/algorithm/generators/refinegan.py index dbe2465d..a25df4ee 100644 --- a/rvc/lib/algorithm/generators/refinegan.py +++ b/rvc/lib/algorithm/generators/refinegan.py @@ -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,