From d41a741dc46eedb210920024924349788a7102f0 Mon Sep 17 00:00:00 2001 From: AznamirWoW <101997116+AznamirWoW@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:24:43 -0500 Subject: [PATCH] removed extra returned value that blows up the pipeline in case the inferred audio segment is empty (all zeros) --- rvc/lib/predictors/FCPE.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rvc/lib/predictors/FCPE.py b/rvc/lib/predictors/FCPE.py index 9edbf067..37ffbb86 100644 --- a/rvc/lib/predictors/FCPE.py +++ b/rvc/lib/predictors/FCPE.py @@ -904,9 +904,7 @@ def compute_f0(self, wav, p_len=None): p_len = x.shape[0] // self.hop_length if p_len is None else p_len f0 = self.fcpe(x, sr=self.sample_rate, threshold=self.threshold)[0, :, 0] if torch.all(f0 == 0): - return f0.cpu().numpy() if p_len is None else np.zeros(p_len), ( - f0.cpu().numpy() if p_len is None else np.zeros(p_len) - ) + return f0.cpu().numpy() if p_len is None else np.zeros(p_len) return self.post_process(x, self.sample_rate, f0, p_len)[0] def compute_f0_uv(self, wav, p_len=None):