Update utils.py
This commit is contained in:
2
utils.py
2
utils.py
@@ -218,7 +218,7 @@ def get_hparams_from_dir(model_dir):
|
|||||||
|
|
||||||
|
|
||||||
def get_hparams_from_file(config_path):
|
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()
|
data = f.read()
|
||||||
config = json.loads(data)
|
config = json.loads(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user