We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--name cfg
1 parent 39c6e56 commit 2a0ad55Copy full SHA for 2a0ad55
train.py
@@ -519,6 +519,8 @@ def main(opt, callbacks=Callbacks()):
519
if opt.project == str(ROOT / 'runs/train'): # if default project name, rename to runs/evolve
520
opt.project = str(ROOT / 'runs/evolve')
521
opt.exist_ok, opt.resume = opt.resume, False # pass resume to exist_ok and disable resume
522
+ if opt.name == 'cfg':
523
+ opt.name = Path(opt.cfg).stem # use model.yaml as name
524
opt.save_dir = str(increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok))
525
526
# DDP mode
0 commit comments