Skip to content

Commit 29bacd5

Browse files
committed
fix: add scheduler.step()
1 parent e320999 commit 29bacd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

segmentation/tool/train.py

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def main_worker(gpu, ngpus_per_node, argss):
220220
if args.distributed:
221221
train_sampler.set_epoch(epoch)
222222
loss_train, mIoU_train, mAcc_train, allAcc_train = train(train_loader, model, criterion, optimizer, epoch)
223+
scheduler.step()
223224

224225
epoch_log = epoch + 1
225226
if main_process(args):

0 commit comments

Comments
 (0)