Skip to content

Commit

Permalink
Fix train.py parameter groups desc error (ultralytics#6318)
Browse files Browse the repository at this point in the history
* Fix `train.py` parameter groups desc error

* Cleanup

Co-authored-by: Glenn Jocher <[email protected]>
  • Loading branch information
Otfot and glenn-jocher authored Jan 17, 2022
1 parent 436ffc4 commit db1f83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db1f83b

Please sign in to comment.