PyCharm reformat (#4209)

* PyCharm reformat

* YAML reformat

* Markdown reformat
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-07-28 23:35:14 +02:00
1 parent 750465edae
commit b60b62e874
38 files changed
+647 -604

No files matched your search

+1 -3
View File
@@ -74,7 +74,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
with open(save_dir / 'opt.yaml', 'w') as f:
yaml.safe_dump(vars(opt), f, sort_keys=False)
data_dict = None
# Loggers
if RANK in [-1, 0]:
loggers = Loggers(save_dir, weights, opt, hyp, LOGGER).start() # loggers dict
@@ -83,7 +83,6 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
if resume:
weights, epochs, hyp = opt.weights, opt.epochs, opt.hyp
# Config
plots = not evolve # create plots
cuda = device.type != 'cpu'
@@ -96,7 +95,6 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
assert len(names) == nc, f'{len(names)} names found for nc={nc} dataset in {data}' # check
is_coco = data.endswith('coco.yaml') and nc == 80 # COCO dataset
# Model
pretrained = weights.endswith('.pt')
if pretrained: