This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
zjc
/
yolov5
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Turn opt into dictionary before sending it to yaml
5.0
Alex Stoken
4 years ago
parent
bc4ef4861b
commit
611aacf1bf
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
train.py
+ 1
- 1
train.py
View File
@@ -193,7 +193,7 @@ def train(hyp):
yaml.dump(hyp, f)
with open(os.path.join(log_dir, 'opt.yaml'), 'w') as f:
yaml.dump(opt, f)
yaml.dump(
vars(
opt
)
, f)
# Class frequency
labels = np.concatenate(dataset.labels, 0)
Write
Preview
Loading…
Cancel
Save