From eb7825920c15ae3ea4c81651fe38ede2e7e760f3 Mon Sep 17 00:00:00 2001 From: XXXXRT666 Date: Tue, 13 Aug 2024 15:44:35 +0800 Subject: [PATCH] encoding --- tools/my_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/my_utils.py b/tools/my_utils.py index 9510f70f..003fffa0 100644 --- a/tools/my_utils.py +++ b/tools/my_utils.py @@ -101,7 +101,7 @@ def check_details(path_list=None,is_train=False,is_dataset_processing=False): path_list.append(os.path.join(path_list[0],'5-wav32k')) path_list.append(os.path.join(path_list[0],'6-name2semantic.tsv')) phone_path, hubert_path, wav_path, semantic_path = path_list[1:] - with open(phone_path) as f: + with open(phone_path,encoding='utf-8') as f: if f.read(1):... else:gr.Warning(i18n('缺少音素数据集')) if os.listdir(hubert_path):...