fixed audio
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user