diff --git a/rvc/lib/algorithm/encoders.py b/rvc/lib/algorithm/encoders.py index 3f94a147..5369ec78 100644 --- a/rvc/lib/algorithm/encoders.py +++ b/rvc/lib/algorithm/encoders.py @@ -145,7 +145,7 @@ def forward( x = self.lrelu(x) x = torch.transpose(x, 1, -1) # [b, h, t] x_mask = torch.unsqueeze(sequence_mask(lengths, x.size(2)), 1).to(x.dtype) - x = self.encoder(x * x_mask, x_mask) + x = self.encoder(x, x_mask) stats = self.proj(x) * x_mask m, logs = torch.split(stats, self.out_channels, dim=1)