Turn opt into dictionary before sending it to yaml
This commit is contained in:
parent
bc4ef4861b
commit
611aacf1bf
2
train.py
2
train.py
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue