mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 19:40:44 +08:00
optimize(config): modelize package
This commit is contained in:
@@ -11,7 +11,7 @@ if __name__ == "__main__":
|
||||
now_dir = os.getcwd()
|
||||
sys.path.append(now_dir)
|
||||
|
||||
from configs.config import Config, singleton_variable
|
||||
from configs import Config, singleton_variable
|
||||
|
||||
from .pipeline import Pipeline
|
||||
from .utils import load_hubert
|
||||
|
||||
@@ -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":
|
||||
|
||||
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
from fairseq import checkpoint_utils
|
||||
|
||||
from configs.config import singleton_variable
|
||||
from configs import singleton_variable
|
||||
|
||||
|
||||
def get_index_path_from_model(sid):
|
||||
|
||||
Reference in New Issue
Block a user