From 60ee09918d8fc180c6ead24ea784bacfc275024e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sat, 2 Sep 2023 00:40:04 +0800 Subject: [PATCH] Update bert_gen.py --- bert_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bert_gen.py b/bert_gen.py index cab5220..3aedb63 100644 --- a/bert_gen.py +++ b/bert_gen.py @@ -39,7 +39,7 @@ def process_line(line): assert bert.shape[-1] == len(phone) torch.save(bert, bert_path) -with open(hps.data.training_files) as f: +with open(hps.data.training_files, encoding='utf-8') as f: lines = f.readlines() with Pool(processes=12) as pool: #A100 suitable config,if coom,please decrease the processess number.