Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d45300f0 authored by PaulWawerek-L's avatar PaulWawerek-L
Browse files

print_checkpoint_saving

parent 1b255653
No related branches found
No related tags found
1 merge request!2OSLO-IC
......@@ -336,6 +336,7 @@ def save_checkpoint(state_dics, is_best, output_folder, filename=None):
output_fileAddr = os.path.join(output_folder, f"checkpoint_{state_dics['epoch']:03d}")
output_fileAddr += ".pth.tar"
torch.save(state_dics, output_fileAddr)
print(f'saved checkpoint to {output_fileAddr}')
if is_best:
fp_best = os.path.join(output_folder, 'checkpoint_best_loss.pth.tar')
print(f'saved best model to {fp_best}')
......
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