Skip to content

Commit

Permalink
Update trans.py
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfuyihui authored May 5, 2022
1 parent bd5809e commit ecfaa10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,7 @@
import soundfile as sf
import librosa
import sys
import os
sys.path.append(os.path.dirname(sys.path[0]) '/model')

EPSILON = 1e-5
Expand Down Expand Up @@ -81,7 82,7 @@ def init_kernel(frame_len: int,
I = th.stack([th.eye(B), th.zeros(B, B)], dim=-1)
# W x B x 2
K = th.fft.fft(I / S, 1)
K = th.stack([K.real, K.imag], -1)
K = th.cat([K.real, K.imag], -1)
if mode == "kaldi":
K = K[:frame_len]
if inverse and not normalized:
Expand Down

0 comments on commit ecfaa10

Please sign in to comment.