From 2c158bfeac3483dbff72fcfaa9fdbbb20f4f7236 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:46:02 +0800 Subject: [PATCH] Add files via upload --- infer/modules/vc/pipeline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/infer/modules/vc/pipeline.py b/infer/modules/vc/pipeline.py index 31e5399..e239090 100644 --- a/infer/modules/vc/pipeline.py +++ b/infer/modules/vc/pipeline.py @@ -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)