Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitLong committed Jan 11, 2020
1 parent 102332d commit 7fd6eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions train_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ def main():
save_file = os.path.join(opt.save_folder, 'ckpt_epoch_{epoch}.pth'.format(epoch=epoch))
torch.save(state, save_file)

# This best accuracy is only for printing purpose.
# The results reported in the paper/README is from the last epoch.
print('best accuracy:', best_acc)

# save model
Expand Down
2 changes: 2 additions & 0 deletions train_teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def main():
save_file = os.path.join(opt.save_folder, 'ckpt_epoch_{epoch}.pth'.format(epoch=epoch))
torch.save(state, save_file)

# This best accuracy is only for printing purpose.
# The results reported in the paper/README is from the last epoch.
print('best accuracy:', best_acc)

# save model
Expand Down

0 comments on commit 7fd6eff

Please sign in to comment.