diff --git a/synthesizer/hparams.py b/synthesizer/hparams.py index 84cec9d..8bcdb63 100644 --- a/synthesizer/hparams.py +++ b/synthesizer/hparams.py @@ -22,7 +22,8 @@ class HParams(object): def loadJson(self, dict): print("\Loading the json with %s\n", dict) for k in dict.keys(): - self.__dict__[k] = dict[k] + if k not in ["tts_schedule", "tts_finetune_layers"]: + self.__dict__[k] = dict[k] return self def dumpJson(self, fp): diff --git a/toolbox/__init__.py b/toolbox/__init__.py index 30f2865..33590bc 100644 --- a/toolbox/__init__.py +++ b/toolbox/__init__.py @@ -451,7 +451,7 @@ class Toolbox: self.ui.log("set hifigan as vocoder") # search a config file model_config_fpaths = list(model_fpath.parent.rglob("*.json")) - if self.ui.current_extractor_fpath is None: + if self.vc_mode and self.ui.current_extractor_fpath is None: return model_config_fpath = model_config_fpaths[0] else: