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,