1 parent 0a75361 commit 666046eCopy full SHA for 666046e
1 file changed
src/diffusion/logger/utils.py
@@ -84,15 +84,15 @@ def get_network_paras_amount(model_dict):
84
85
86
def load_config(path_config):
87
- with open(path_config, "r") as config:
+ with open(path_config, "r", encoding="utf-8") as config:
88
args = yaml.safe_load(config)
89
args = DotDict(args)
90
# print(args)
91
return args
92
93
def save_config(path_config,config):
94
config = dict(config)
95
- with open(path_config, "w") as f:
+ with open(path_config, "w", encoding="utf-8") as f:
96
yaml.dump(config, f)
97
98
def to_json(path_params, path_json):
0 commit comments