kevinwang676 commited on
Commit
0d06877
·
verified ·
1 Parent(s): 534cce5

Update egs/visinger2/models.py

Browse files
Files changed (1) hide show
  1. egs/visinger2/models.py +2 -1
egs/visinger2/models.py CHANGED
@@ -578,7 +578,7 @@ class Generator_Noise(torch.nn.Module):
578
  istft_x = self.net(istft_x) * mask
579
 
580
  # Compute amplitude and random phase
581
- amp = self.istft_amplitude(istft_x).unsqueeze(-1)
582
  phase = (torch.rand(amp.shape) * 2 * 3.14 - 3.14).to(amp.device)
583
 
584
  # Calculate real and imaginary parts
@@ -595,6 +595,7 @@ class Generator_Noise(torch.nn.Module):
595
 
596
 
597
 
 
598
  class LayerNorm(nn.Module):
599
  def __init__(self, channels, eps=1e-5):
600
  super().__init__()
 
578
  istft_x = self.net(istft_x) * mask
579
 
580
  # Compute amplitude and random phase
581
+ amp = self.istft_amplitude(istft_x)
582
  phase = (torch.rand(amp.shape) * 2 * 3.14 - 3.14).to(amp.device)
583
 
584
  # Calculate real and imaginary parts
 
595
 
596
 
597
 
598
+
599
  class LayerNorm(nn.Module):
600
  def __init__(self, channels, eps=1e-5):
601
  super().__init__()