mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-17 20:00:09 +08:00
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
This commit is contained in:
parent
aa2ed8e646
commit
cfba44f24f
@ -623,7 +623,7 @@ if __name__ == "__main__":
|
|||||||
# infer
|
# infer
|
||||||
f0_extractor_frame = self.block_frame_16k + 800
|
f0_extractor_frame = self.block_frame_16k + 800
|
||||||
if self.config.f0method == "rmvpe":
|
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(
|
infer_wav = self.rvc.infer(
|
||||||
self.input_wav_res,
|
self.input_wav_res,
|
||||||
self.input_wav_res[-f0_extractor_frame:].cpu().numpy(),
|
self.input_wav_res[-f0_extractor_frame:].cpu().numpy(),
|
||||||
|
Loading…
Reference in New Issue
Block a user