Skip to content

Commit

Permalink
Merge branch 'svc-develop-team:4.0' into 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SayaSS authored May 11, 2023
2 parents 3ee7640 + 496e1c4 commit af41922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inference_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main():
lg_size_r = int(lg_size*lgr)
lg_size_c_l = (lg_size-lg_size_r)//2
lg_size_c_r = lg_size-lg_size_r-lg_size_c_l
lg = np.linspace(0,1,lg_size_r) if lg_size!=0 else 0
lg_2 = np.linspace(0,1,lg_size_r) if lg_size!=0 else 0

for spk in spk_list:
audio = []
Expand Down Expand Up @@ -146,7 +146,7 @@ def main():
if lg_size!=0 and k!=0:
lg1 = audio[-(lg_size_r+lg_size_c_r):-lg_size_c_r] if lgr != 1 else audio[-lg_size:]
lg2 = _audio[lg_size_c_l:lg_size_c_l+lg_size_r] if lgr != 1 else _audio[0:lg_size]
lg_pre = lg1*(1-lg)+lg2*lg
lg_pre = lg1*(1-lg_2)+lg2*lg_2
audio = audio[0:-(lg_size_r+lg_size_c_r)] if lgr != 1 else audio[0:-lg_size]
audio.extend(lg_pre)
_audio = _audio[lg_size_c_l+lg_size_r:] if lgr != 1 else _audio[lg_size:]
Expand Down

0 comments on commit af41922

Please sign in to comment.