Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit db1f83b

Browse files
otfotglenn-jocher
andauthored
Fix train.py parameter groups desc error (ultralytics#6318)
* Fix `train.py` parameter groups desc error * Cleanup Co-authored-by: Glenn Jocher <[email protected]>
1 parent 436ffc4 commit db1f83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
172172
optimizer.add_param_group({'params': g1, 'weight_decay': hyp['weight_decay']}) # add g1 with weight_decay
173173
optimizer.add_param_group({'params': g2}) # add g2 (biases)
174174
LOGGER.info(f"{colorstr('optimizer:')} {type(optimizer).__name__} with parameter groups "
175-
f"{len(g0)} weight, {len(g1)} weight (no decay), {len(g2)} bias")
175+
f"{len(g0)} weight (no decay), {len(g1)} weight, {len(g2)} bias")
176176
del g0, g1, g2
177177

178178
# Scheduler

0 commit comments

Comments
 (0)