mirror of
https://github.com/babysor/Realtime-Voice-Clone-Chinese.git
synced 2026-11-29 23:47:13 +08:00
Fix bug when searching for vocoder
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user