This commit is contained in:
ylzz1997
2023-08-30 00:56:23 +08:00
2 changed files with 10 additions and 6 deletions

View File

@@ -1,11 +1,15 @@
Cython==0.29.21
Cython
librosa==0.9.1
matplotlib==3.3.1
numpy
phonemizer==2.2.1
scipy==1.5.2
tensorboard==2.3.0
phonemizer
scipy
tensorboard
torch
torchvision
Unidecode==1.1.1
Unidecode
amfm_decompy
jieba
transformers
pypinyin
cn2an

View File

@@ -206,7 +206,7 @@ def clean_checkpoints(path_to_models='logs/44k/', n_ckpts_to_keep=2, sort_by_tim
def get_hparams_from_dir(model_dir):
config_save_path = os.path.join(model_dir, "config.json")
with open(config_save_path, "r") as f:
with open(config_save_path, "r", encoding='utf-8') as f:
data = f.read()
config = json.loads(data)