From 3ef64339bedee3679392d3b8c4918c917a0a3244 Mon Sep 17 00:00:00 2001 From: Matt <48956156+MattVAD@users.noreply.github.com> Date: Tue, 8 Feb 2022 15:09:08 +0100 Subject: [PATCH] PEP8 whitespace around operator --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 75cfe6da0c8c..468fc3d81a02 100644 --- a/train.py +++ b/train.py @@ -515,7 +515,7 @@ def main(opt, callbacks=Callbacks()): check_file(opt.data), check_yaml(opt.cfg), check_yaml(opt.hyp), str(opt.weights), str(opt.project) # checks assert len(opt.cfg) or len(opt.weights), 'either --cfg or --weights must be specified' if opt.evolve: - if opt.project==str(ROOT / 'runs/train'): + if opt.project == str(ROOT / 'runs/train'): opt.project = str(ROOT / 'runs/evolve') opt.exist_ok, opt.resume = opt.resume, False # pass resume to exist_ok and disable resume opt.save_dir = str(increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok))