From 8279807d7b2a353724c8e32fccd7deffccb32096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= <2225664821@qq.com> Date: Tue, 29 Aug 2023 23:05:36 +0800 Subject: [PATCH 1/2] Update requirements.txt --- requirements.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index c00f403..c58025a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 From 4874c273499d09042a376e1e921160bf8316f96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= <2225664821@qq.com> Date: Tue, 29 Aug 2023 23:07:24 +0800 Subject: [PATCH 2/2] Update utils.py --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 04a05cb..0e00972 100644 --- a/utils.py +++ b/utils.py @@ -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)