Otfot glenn-jocher commited on
Commit
db1f83b
1 Parent(s): 436ffc4

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

Browse files

* Fix `train.py` parameter groups desc error

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Files changed (1) hide show
  1. train.py +1 -1
train.py CHANGED
@@ -172,7 +172,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
172
  optimizer.add_param_group({'params': g1, 'weight_decay': hyp['weight_decay']}) # add g1 with weight_decay
173
  optimizer.add_param_group({'params': g2}) # add g2 (biases)
174
  LOGGER.info(f"{colorstr('optimizer:')} {type(optimizer).__name__} with parameter groups "
175
- f"{len(g0)} weight, {len(g1)} weight (no decay), {len(g2)} bias")
176
  del g0, g1, g2
177
 
178
  # Scheduler
 
172
  optimizer.add_param_group({'params': g1, 'weight_decay': hyp['weight_decay']}) # add g1 with weight_decay
173
  optimizer.add_param_group({'params': g2}) # add g2 (biases)
174
  LOGGER.info(f"{colorstr('optimizer:')} {type(optimizer).__name__} with parameter groups "
175
+ f"{len(g0)} weight (no decay), {len(g1)} weight, {len(g2)} bias")
176
  del g0, g1, g2
177
 
178
  # Scheduler