Update utils.py

This commit is contained in:
Stardust·减
2023-09-02 21:43:24 +08:00
committed by GitHub
parent a4f9710c59
commit 5ce003d853

View File

@@ -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)