Merge branch 'dev' of https://github.com/shahules786/enhancer into dev-hawk
This commit is contained in:
commit
24fa16ca25
|
|
@ -85,7 +85,7 @@ class ConviSTFT(ConvFFT):
|
|||
input = torch.cat([real, imag], 1)
|
||||
out = F.conv_transpose1d(input, self.weight, stride=self.hop_size)
|
||||
coeff = self.window.unsqueeze(1).repeat(1, 1, input.size(-1)) ** 2
|
||||
coeff.to(self.device)
|
||||
coeff.to(input.device)
|
||||
coeff = F.conv_transpose1d(coeff, self.enframe, stride=self.hop_size)
|
||||
out = out / (coeff + 1e-8)
|
||||
pad = self.window_len - self.hop_size
|
||||
|
|
|
|||
Loading…
Reference in New Issue