From cfba44f24f56b91d865ef4d29fc7bf0a7a287b5d Mon Sep 17 00:00:00 2001 From: yxlllc <33565655+yxlllc@users.noreply.github.com> Date: Mon, 18 Sep 2023 22:31:00 +0800 Subject: [PATCH] Fix alignment error of rmvpe for real-time GUI (#1275) * loudness factor control and gpu-accelerated noise reduction * loudness factor control and gpu-accelerated noise reduction * loudness factor control and gpu-accelerated noise reduction * streaming noise reduction and other optimizations * streaming noise reduction and other optimizations * fix alignment error of rmvpe --- gui_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui_v1.py b/gui_v1.py index 84adb7c..f86809d 100644 --- a/gui_v1.py +++ b/gui_v1.py @@ -623,7 +623,7 @@ if __name__ == "__main__": # infer f0_extractor_frame = self.block_frame_16k + 800 if self.config.f0method == "rmvpe": - f0_extractor_frame = 5120 * ((f0_extractor_frame - 1) // 5120 + 1) + f0_extractor_frame = 5120 * ((f0_extractor_frame - 1) // 5120 + 1) - 160 infer_wav = self.rvc.infer( self.input_wav_res, self.input_wav_res[-f0_extractor_frame:].cpu().numpy(),