Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiuming123 authored Feb 17, 2024
1 parent c3dc190 commit 84087ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def main():
for param_group in optimizer.param_groups:
param_group['lr'] = lr

if epoch % 5 == 0:
if epoch % 2 == 0:
save_path = os.path.join(checkpoints_dir,
'{}_{:03d}_{:04f}.pth.tar'.format(model.__class__.__name__, epoch, float(train_loss)))
torch.save({
Expand Down

0 comments on commit 84087ed

Please sign in to comment.