Skip to content

Commit

Permalink
Merge pull request ifzhang#277 from developer0hye/patch-1
Browse files Browse the repository at this point in the history
Remove unused variable 'best'
  • Loading branch information
ifzhang committed Dec 9, 2020
2 parents b8ae994 + dfc5c65 commit fdf6fff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def main(opt):
model, optimizer, start_epoch = load_model(
model, opt.load_model, trainer.optimizer, opt.resume, opt.lr, opt.lr_step)

best = 1e10
for epoch in range(start_epoch + 1, opt.num_epochs + 1):
mark = epoch if opt.save_all else 'last'
log_dict_train, _ = trainer.train(epoch, train_loader)
Expand Down

0 comments on commit fdf6fff

Please sign in to comment.