1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-09 12:30:38 +08:00

optimize(config): modelize package

This commit is contained in:
源文雨
2024-06-03 15:10:26 +09:00
parent 6408558727
commit f03e1104c0
11 changed files with 11 additions and 9 deletions

View File

@@ -118,6 +118,7 @@ class Pipeline(object):
f0_cache_key = md5(x.tobytes()).digest()
input_audio_path2wav[f0_cache_key] = x.astype(np.double)
f0 = cache_harvest_f0(f0_cache_key, self.sr, f0_max, f0_min, 10)
del input_audio_path2wav[f0_cache_key]
if filter_radius > 2:
f0 = signal.medfilt(f0, 3)
elif f0_method == "crepe":