Add files via upload

This commit is contained in:
RVC-Boss
2023-07-26 19:50:50 +08:00
committed by GitHub
parent 8fb03a64e0
commit b1cb31854a
5 changed files with 283 additions and 59 deletions

View File

@@ -74,6 +74,15 @@ class FeatureInput(object):
frame_period=1000 * self.hop / self.fs,
)
f0 = pyworld.stonemask(x.astype(np.double), f0, t, self.fs)
elif f0_method == "rmvpe":
if hasattr(self, "model_rmvpe") == False:
from lib.rmvpe import RMVPE
print("loading rmvpe model")
self.model_rmvpe = RMVPE(
"rmvpe.pt", is_half=False, device="cpu"
)
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
return f0
def coarse_f0(self, f0):