kevinwang676 commited on
Commit
05dd4cd
·
verified ·
1 Parent(s): a8d678d

Update egs/visinger2/models.py

Browse files
Files changed (1) hide show
  1. egs/visinger2/models.py +2 -1
egs/visinger2/models.py CHANGED
@@ -581,7 +581,8 @@ class Generator_Noise(torch.nn.Module):
581
 
582
  real = amp * torch.cos(phase)
583
  imag = amp * torch.sin(phase)
584
- spec = torch.cat([real, imag], 3)
 
585
 
586
  istft_x = torch.istft(spec, self.fft_size, self.hop_size, self.win_size, self.window.to(amp), True, length=x.shape[2] * self.hop_size, return_complex=False)
587
 
 
581
 
582
  real = amp * torch.cos(phase)
583
  imag = amp * torch.sin(phase)
584
+ #spec = torch.cat([real, imag], 3)
585
+ spec = torch.complex(real, imag)
586
 
587
  istft_x = torch.istft(spec, self.fft_size, self.hop_size, self.win_size, self.window.to(amp), True, length=x.shape[2] * self.hop_size, return_complex=False)
588