diff --git a/infer-web.py b/infer-web.py index 52d2e83..b7740a4 100644 --- a/infer-web.py +++ b/infer-web.py @@ -1345,7 +1345,7 @@ def print_page_details(): print(" arg 4) feature index file path: logs/mi-test/added_IVF3042_Flat_nprobe_1.index") print(" arg 5) speaker id: 0") print(" arg 6) transposition: 0") - print(" arg 7) f0 method: harvest (pm, harvest, crepe, crepe-tiny)") + print(" arg 7) f0 method: harvest (pm, harvest, crepe, crepe-tiny, hybrid[x,x,x,x])") print(" arg 8) crepe hop length: 128") print(" arg 9) harvest median filter radius: 3 (0-7)") print(" arg 10) post resample rate: 0") diff --git a/vc_infer_pipeline.py b/vc_infer_pipeline.py index 0a5b56a..90637c6 100644 --- a/vc_infer_pipeline.py +++ b/vc_infer_pipeline.py @@ -170,9 +170,13 @@ class VC(object): f0 = cache_harvest_f0(input_audio_path, self.sr, f0_max, f0_min, 10) if filter_radius > 2: f0 = signal.medfilt(f0, 3) + f0 = f0[1:] # Get rid of first frame. # Push method to the stack f0_computation_stack.append(f0) + for fc in f0_computation_stack: + print(len(fc)) + print("Calculating hybrid median f0 from the stack of: %s" % str(methods)) f0_median_hybrid = np.nanmedian(f0_computation_stack, axis=0) return f0_median_hybrid