fixed audio

This commit is contained in:
SayanoAI
2024-10-06 21:39:08 -04:00
parent 1f05cf1fff
commit 69e8d01634
6 changed files with 43 additions and 41 deletions
+2 -1
View File
@@ -654,7 +654,8 @@ class RMVPE:
if self.is_half == True:
hidden = hidden.astype("float32")
f0 = self.decode(hidden, thred=thred)
f0[(f0 < f0_min) | (f0 > f0_max)] = 0
# f0[(f0 < f0_min) | (f0 > f0_max)] = 0
f0 = np.clip(f0, a_min=f0_min, a_max=f0_max)
return f0
def to_local_average_cents(self, salience, thred=0.05):