mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Fix bug introduced by config file reading
This commit is contained in:
parent
c36f02634a
commit
6c01b92703
|
@ -22,7 +22,8 @@ class HParams(object):
|
||||||
def loadJson(self, dict):
|
def loadJson(self, dict):
|
||||||
print("\Loading the json with %s\n", dict)
|
print("\Loading the json with %s\n", dict)
|
||||||
for k in dict.keys():
|
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
|
return self
|
||||||
|
|
||||||
def dumpJson(self, fp):
|
def dumpJson(self, fp):
|
||||||
|
|
|
@ -451,7 +451,7 @@ class Toolbox:
|
||||||
self.ui.log("set hifigan as vocoder")
|
self.ui.log("set hifigan as vocoder")
|
||||||
# search a config file
|
# search a config file
|
||||||
model_config_fpaths = list(model_fpath.parent.rglob("*.json"))
|
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
|
return
|
||||||
model_config_fpath = model_config_fpaths[0]
|
model_config_fpath = model_config_fpaths[0]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user