mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Fix bug when searching for vocoder
This commit is contained in:
parent
fc26c38152
commit
3c97d22938
|
@ -453,7 +453,8 @@ class Toolbox:
|
|||
model_config_fpaths = list(model_fpath.parent.rglob("*.json"))
|
||||
if self.vc_mode and self.ui.current_extractor_fpath is None:
|
||||
return
|
||||
model_config_fpath = model_config_fpaths[0]
|
||||
if len(model_config_fpaths) > 0:
|
||||
model_config_fpath = model_config_fpaths[0]
|
||||
else:
|
||||
vocoder = rnn_vocoder
|
||||
self.ui.log("set wavernn as vocoder")
|
||||
|
|
|
@ -19,7 +19,7 @@ def load_checkpoint(filepath, device):
|
|||
return checkpoint_dict
|
||||
|
||||
|
||||
def load_model(weights_fpath, config_fpath="./vocoder/saved_models/24k/config.json", verbose=True):
|
||||
def load_model(weights_fpath, config_fpath="./vocoder/hifigan/config_16k.json", verbose=True):
|
||||
global generator, _device, output_sample_rate
|
||||
|
||||
if verbose:
|
||||
|
|
Loading…
Reference in New Issue
Block a user