Skip to content

Commit 1768c40

Browse files
committed
Cleanup
1 parent 3ef6433 commit 1768c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def main(opt, callbacks=Callbacks()):
515515
check_file(opt.data), check_yaml(opt.cfg), check_yaml(opt.hyp), str(opt.weights), str(opt.project) # checks
516516
assert len(opt.cfg) or len(opt.weights), 'either --cfg or --weights must be specified'
517517
if opt.evolve:
518-
if opt.project == str(ROOT / 'runs/train'):
518+
if opt.project == str(ROOT / 'runs/train'): # if default project name, rename to runs/evolve
519519
opt.project = str(ROOT / 'runs/evolve')
520520
opt.exist_ok, opt.resume = opt.resume, False # pass resume to exist_ok and disable resume
521521
opt.save_dir = str(increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok))

0 commit comments

Comments
 (0)