Fix train.py parameter groups desc error (#6318)

* Fix `train.py` parameter groups desc error

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
OtfotandGlenn Jocher authored and GitHub committed 2022-01-16 20:58:34 -10:00
1 parent 436ffc417a
commit db1f83be63
1 file changed
+1 -1
+1 -1
View File
@@ -172,7 +172,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
optimizer.add_param_group({'params': g1, 'weight_decay': hyp['weight_decay']}) # add g1 with weight_decay
optimizer.add_param_group({'params': g2}) # add g2 (biases)
LOGGER.info(f"{colorstr('optimizer:')} {type(optimizer).__name__} with parameter groups "
f"{len(g0)} weight, {len(g1)} weight (no decay), {len(g2)} bias")
f"{len(g0)} weight (no decay), {len(g1)} weight, {len(g2)} bias")
del g0, g1, g2
# Scheduler