提交 611aacf1 authored 作者: Alex Stoken's avatar Alex Stoken

Turn opt into dictionary before sending it to yaml

上级 bc4ef486
...@@ -193,7 +193,7 @@ def train(hyp): ...@@ -193,7 +193,7 @@ def train(hyp):
yaml.dump(hyp, f) yaml.dump(hyp, f)
with open(os.path.join(log_dir, 'opt.yaml'), 'w') as f: with open(os.path.join(log_dir, 'opt.yaml'), 'w') as f:
yaml.dump(opt, f) yaml.dump(vars(opt), f)
# Class frequency # Class frequency
labels = np.concatenate(dataset.labels, 0) labels = np.concatenate(dataset.labels, 0)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论