Skip to content

Commit 4e602a8

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix minor bug on PolynomialLR invocation (#6436)
Summary: 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. Reviewed By: datumbox Differential Revision: D38824253 fbshipit-source-id: 08401f694398a8c64e198bfc16fed874f5c7b462
1 parent e0345e2 commit 4e602a8

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)