From fc26c381520a4d0dee7b50f70a777f0424602429 Mon Sep 17 00:00:00 2001 From: babysor00 Date: Mon, 7 Mar 2022 17:05:22 +0800 Subject: [PATCH] Fix compatibility issue --- toolbox/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolbox/__init__.py b/toolbox/__init__.py index 33590bc..ee96ef3 100644 --- a/toolbox/__init__.py +++ b/toolbox/__init__.py @@ -3,8 +3,6 @@ from encoder import inference as encoder from synthesizer.inference import Synthesizer from vocoder.wavernn import inference as rnn_vocoder from vocoder.hifigan import inference as gan_vocoder -import ppg_extractor as extractor -import ppg2mel as convertor from pathlib import Path from time import perf_counter as timer from toolbox.utterance import Utterance @@ -397,6 +395,7 @@ class Toolbox: self.ui.log("Loading the extractor %s... " % model_fpath) self.ui.set_loading(1) start = timer() + import ppg_extractor as extractor self.extractor = extractor.load_model(model_fpath) self.ui.log("Done (%dms)." % int(1000 * (timer() - start)), "append") self.ui.set_loading(0) @@ -413,6 +412,7 @@ class Toolbox: self.ui.log("Loading the convertor %s... " % model_fpath) self.ui.set_loading(1) start = timer() + import ppg2mel as convertor self.convertor = convertor.load_model(model_config_fpath, model_fpath) self.ui.log("Done (%dms)." % int(1000 * (timer() - start)), "append") self.ui.set_loading(0)