From bfc97db42c2a0302264d99255072286e47f6d174 Mon Sep 17 00:00:00 2001 From: jaewon Date: Wed, 9 Mar 2022 15:14:02 +0900 Subject: [PATCH] Fixed issue during configuration file writing --- utils/gen_wts_yoloV5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gen_wts_yoloV5.py b/utils/gen_wts_yoloV5.py index 963428c..ff12353 100644 --- a/utils/gen_wts_yoloV5.py +++ b/utils/gen_wts_yoloV5.py @@ -124,7 +124,7 @@ with open(wts_file, "w") as f: f.write(wts_write) with open(cfg_file, "w") as c: - with open(yaml_file, "r") as f: + with open(yaml_file, "r", encoding="utf-8") as f: nc = 0 depth_multiple = 0 width_multiple = 0