1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 03:55:47 +08:00

optimize(rvc.f0): rename inner defs

This commit is contained in:
源文雨
2024-06-13 00:51:22 +09:00
parent 83144868e1
commit 1e94e007d5
6 changed files with 6 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ class F0Predictor(object):
filter_radius: Optional[Union[int, float]] = None,
): ...
def interpolate_f0(self, f0: np.ndarray[Any, np.dtype]):
def _interpolate_f0(self, f0: np.ndarray[Any, np.dtype]):
"""
对F0进行插值处理
"""
@@ -55,7 +55,7 @@ class F0Predictor(object):
return ip_data[:, 0], vuv_vector[:, 0]
def resize_f0(self, x: np.ndarray[Any, np.dtype], target_len: int):
def _resize_f0(self, x: np.ndarray[Any, np.dtype], target_len: int):
source = np.array(x)
source[source < 0.001] = np.nan
target = np.interp(