Skip to content
Snippets Groups Projects
Commit 0c882e98 authored by Alexandre Chapin's avatar Alexandre Chapin :race_car:
Browse files

Change checkpoint name

parent 3bbd64ae
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ def main(): ...@@ -124,7 +124,7 @@ def main():
if not global_step % cfg["training"]["checkpoint_every"]: if not global_step % cfg["training"]["checkpoint_every"]:
# Save the checkpoint of the model. # Save the checkpoint of the model.
ckpt['global_step'] = global_step ckpt['global_step'] = global_step
torch.save(ckpt, args.ckpt + '/ckpt.pth') torch.save(ckpt, args.ckpt + '/ckpt_' + str(global_step) + '.pth')
print(f"Saved checkpoint: {args.ckpt + '/ckpt_' + str(global_step) + '.pth'}") print(f"Saved checkpoint: {args.ckpt + '/ckpt_' + str(global_step) + '.pth'}")
# We visualize some test data # We visualize some test data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment