Skip to content

Commit f4c3342

Browse files
committed
Typo
1 parent 04b76d6 commit f4c3342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

train_sem_seg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
model.parameters(), lr=args.lr, weight_decay=args.weight_decay
108108
)
109109

110-
lr_lbmd = lambda e: max(args.lr_decay**(int(it * args.batch_size / args.decay_step)), lr_clip / args.lr)
111-
bnm_lmbd = lambda e: max(args.bn_momentum * args.bn_decay**(int(it * args.batch_size / args.decay_step)), bnm_clip)
110+
lr_lbmd = lambda it: max(args.lr_decay**(int(it * args.batch_size / args.decay_step)), lr_clip / args.lr)
111+
bnm_lmbd = lambda it: max(args.bn_momentum * args.bn_decay**(int(it * args.batch_size / args.decay_step)), bnm_clip)
112112

113113
if args.checkpoint is None:
114114
lr_scheduler = lr_sched.LambdaLR(optimizer, lr_lbmd)

0 commit comments

Comments
 (0)