Skip to content

Commit 78d680f

Browse files
authored
Fix minor bug on PolynomialLR invocation (#6436)
Resolves issue reported at 6e535db#commitcomment-81409388 There seems to be a misspelling on the name of the parameter. This PR updates `total_steps` to `total_iters` which is the correct argument.
1 parent db71802 commit 78d680f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

references/segmentation/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def main(args):
186186

187187
iters_per_epoch = len(data_loader)
188188
main_lr_scheduler = PolynomialLR(
189-
optimizer, total_steps=iters_per_epoch * (args.epochs - args.lr_warmup_epochs), power=0.9
189+
optimizer, total_iters=iters_per_epoch * (args.epochs - args.lr_warmup_epochs), power=0.9
190190
)
191191

192192
if args.lr_warmup_epochs > 0:

0 commit comments

Comments
 (0)