Merge pull request #150 from JWLee89/jaylee

Updated gen_wts_yoloV5.py - cfg file fails to write due to encoding issues
This commit is contained in:
Marcos Luciano
2022-03-09 08:57:18 -03:00
committed by GitHub

View File

@@ -124,7 +124,7 @@ with open(wts_file, "w") as f:
f.write(wts_write) f.write(wts_write)
with open(cfg_file, "w") as c: 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 nc = 0
depth_multiple = 0 depth_multiple = 0
width_multiple = 0 width_multiple = 0