mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Syntax fixes
This commit is contained in:
parent
9b7386f603
commit
c8152c81a6
4
train.py
4
train.py
@ -50,7 +50,7 @@ def train(hyp):
|
||||
os.makedirs(wdir, exist_ok=True)
|
||||
last = wdir + 'last.pt'
|
||||
best = wdir + 'best.pt'
|
||||
results_file = log_dir + 'results.txt'
|
||||
results_file = log_dir + os.sep + 'results.txt'
|
||||
|
||||
epochs = opt.epochs # 300
|
||||
batch_size = opt.batch_size # 64
|
||||
@ -303,7 +303,7 @@ def train(hyp):
|
||||
model=ema.ema,
|
||||
single_cls=opt.single_cls,
|
||||
dataloader=testloader,
|
||||
fast=epoch < epochs / 2
|
||||
fast=epoch < epochs / 2,
|
||||
save_dir=log_dir)
|
||||
|
||||
# Write
|
||||
|
Loading…
x
Reference in New Issue
Block a user