From 6532d6515371da79f28b7bc49819f36ebb67c53b Mon Sep 17 00:00:00 2001 From: babysor00 Date: Sat, 12 Mar 2022 19:14:01 +0800 Subject: [PATCH] Add default param for inferencing of vocoder --- vocoder/hifigan/inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vocoder/hifigan/inference.py b/vocoder/hifigan/inference.py index 4405f41..edbcd38 100644 --- a/vocoder/hifigan/inference.py +++ b/vocoder/hifigan/inference.py @@ -19,7 +19,7 @@ def load_checkpoint(filepath, device): return checkpoint_dict -def load_model(weights_fpath, config_fpath, verbose=True): +def load_model(weights_fpath, config_fpath=None, verbose=True): global generator, _device, output_sample_rate if verbose: