From 5ce003d85380aebad3a7f422dfbeff599ad07178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sat, 2 Sep 2023 21:43:24 +0800 Subject: [PATCH] Update utils.py --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index f07a682..fbd7149 100644 --- a/utils.py +++ b/utils.py @@ -218,7 +218,7 @@ def get_hparams_from_dir(model_dir): def get_hparams_from_file(config_path): - with open(config_path, "r") as f: + with open(config_path, "r", encoding='utf-8') as f: data = f.read() config = json.loads(data)