Skip to content

Commit

Permalink
optimizer的参数错误修正
Browse files Browse the repository at this point in the history
  • Loading branch information
novioleo authored Oct 10, 2021
1 parent 83e9c45 commit af80609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rec_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def main():
# ===> get fine tune layers
params_to_train = get_fine_tune_params(net, train_options['fine_tune_stage'])
# ===> solver and lr scheduler
optimizer = build_optimizer(net.parameters(), cfg['optimizer'])
optimizer = build_optimizer(params_to_train, cfg['optimizer'])
scheduler = build_scheduler(optimizer, cfg['lr_scheduler'])

# ===> whether to resume from checkpoint
Expand Down

0 comments on commit af80609

Please sign in to comment.