mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Add default path for hifi
This commit is contained in:
parent
3c97d22938
commit
79f424d614
|
@ -19,12 +19,14 @@ def load_checkpoint(filepath, device):
|
||||||
return checkpoint_dict
|
return checkpoint_dict
|
||||||
|
|
||||||
|
|
||||||
def load_model(weights_fpath, config_fpath="./vocoder/hifigan/config_16k.json", verbose=True):
|
def load_model(weights_fpath, config_fpath, verbose=True):
|
||||||
global generator, _device, output_sample_rate
|
global generator, _device, output_sample_rate
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Building hifigan")
|
print("Building hifigan")
|
||||||
|
|
||||||
|
if config_fpath == None:
|
||||||
|
config_fpath = "./vocoder/hifigan/config_16k_.json"
|
||||||
with open(config_fpath) as f:
|
with open(config_fpath) as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
json_config = json.loads(data)
|
json_config = json.loads(data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user