mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2024-12-29 19:15:04 +08:00
Add files via upload
This commit is contained in:
parent
d91cbec9f7
commit
03ccd53ffe
@ -321,14 +321,14 @@ class Pipeline(object):
|
||||
if audio_pad.shape[0] > self.t_max:
|
||||
audio_sum = np.zeros_like(audio)
|
||||
for i in range(self.window):
|
||||
audio_sum += audio_pad[i : i - self.window]
|
||||
audio_sum += np.abs(audio_pad[i : i - self.window])
|
||||
for t in range(self.t_center, audio.shape[0], self.t_center):
|
||||
opt_ts.append(
|
||||
t
|
||||
- self.t_query
|
||||
+ np.where(
|
||||
np.abs(audio_sum[t - self.t_query : t + self.t_query])
|
||||
== np.abs(audio_sum[t - self.t_query : t + self.t_query]).min()
|
||||
audio_sum[t - self.t_query : t + self.t_query]
|
||||
== audio_sum[t - self.t_query : t + self.t_query].min()
|
||||
)[0][0]
|
||||
)
|
||||
s = 0
|
||||
|
Loading…
Reference in New Issue
Block a user