Skip to content

Commit ee8fbb6

Browse files
committed
fix(rmvpe): add filter_radius fallback
1 parent e4138bf commit ee8fbb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rvc/f0/rmvpe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def _mel2hidden(self, mel):
155155
return hidden[:, :n_frames]
156156

157157
def _decode(self, hidden, thred=0.03):
158+
if thred is None:
159+
thred = 0.03
158160
cents_pred = self._to_local_average_cents(hidden, threshold=thred)
159161
f0 = 10 * (2 ** (cents_pred / 1200))
160162
f0[f0 == 10] = 0

0 commit comments

Comments
 (0)