Skip to content

Commit cfba44f

Browse files
authored
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
1 parent aa2ed8e commit cfba44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def audio_callback(
623623
# infer
624624
f0_extractor_frame = self.block_frame_16k + 800
625625
if self.config.f0method == "rmvpe":
626-
f0_extractor_frame = 5120 * ((f0_extractor_frame - 1) // 5120 + 1)
626+
f0_extractor_frame = 5120 * ((f0_extractor_frame - 1) // 5120 + 1) - 160
627627
infer_wav = self.rvc.infer(
628628
self.input_wav_res,
629629
self.input_wav_res[-f0_extractor_frame:].cpu().numpy(),

0 commit comments

Comments
 (0)