Skip to content

Commit 666046e

Browse files
1
1 parent 0a75361 commit 666046e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffusion/logger/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ def get_network_paras_amount(model_dict):
8484

8585

8686
def load_config(path_config):
87-
with open(path_config, "r") as config:
87+
with open(path_config, "r", encoding="utf-8") as config:
8888
args = yaml.safe_load(config)
8989
args = DotDict(args)
9090
# print(args)
9191
return args
9292

9393
def save_config(path_config,config):
9494
config = dict(config)
95-
with open(path_config, "w") as f:
95+
with open(path_config, "w", encoding="utf-8") as f:
9696
yaml.dump(config, f)
9797

9898
def to_json(path_params, path_json):

0 commit comments

Comments
 (0)