Skip to content

Commit 2955d95

Browse files
committed
cleanup
1 parent 31782b7 commit 2955d95

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

rvc/lib/algorithm/generators/refinegan.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ def __init__(
296296
upsample_initial_channel=512,
297297
):
298298
super().__init__()
299-
print('v2')
300299
self.upsample_rates = upsample_rates
301300
self.leaky_relu_slope = leaky_relu_slope
302301
self.checkpointing = checkpointing
@@ -388,7 +387,6 @@ def forward(self, mel: torch.Tensor, f0: torch.Tensor, g: torch.Tensor = None):
388387
self.upsample_conv_blocks,
389388
self.downsample_blocks,
390389
):
391-
# in-place call
392390
x = F.leaky_relu(x, self.leaky_relu_slope)
393391

394392
if self.training and self.checkpointing:
@@ -400,10 +398,8 @@ def forward(self, mel: torch.Tensor, f0: torch.Tensor, g: torch.Tensor = None):
400398
x = torch.cat([x, down(har_source)], dim=1)
401399
x = res(x)
402400

403-
# in-place call
404401
x = F.leaky_relu(x, self.leaky_relu_slope)
405402
x = self.conv_post(x)
406-
# in-place call
407403
x = torch.tanh(x)
408404

409405
return x

0 commit comments

Comments
 (0)