1
0
mirror of synced 2024-11-27 17:00:54 +01:00

Add files via upload

This commit is contained in:
RVC-Boss 2023-08-30 17:46:02 +08:00 committed by GitHub
parent 934cdbb227
commit 2c158bfeac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,8 +77,6 @@ class Pipeline(object):
self.t_max = self.sr * self.x_max # 免查询时长阈值
self.device = config.device
self.model_rmvpe = None
def get_f0(
self,
input_audio_path,
@ -141,9 +139,9 @@ class Pipeline(object):
if not hasattr(self, "model_rmvpe"):
from infer.lib.rmvpe import RMVPE
print("loading rmvpe model")
print("loading rmvpe model,%s"%"%s/rmvpe.pt"%os.environ["rmvpe_root"])
self.model_rmvpe = RMVPE(
"rmvpe.pt", is_half=self.is_half, device=self.device
"%s/rmvpe.pt"%os.environ["rmvpe_root"], is_half=self.is_half, device=self.device
)
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)