You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CheckpointSaver: incorrect labelling of final model #1338
Describe the bug
When using a CheckpointSaver among the validation handlers, the argument save_final=True results in every epoch being stored under net_final_iteration=1.pt when final_filename=None. I interpret the docs (default to checkpoint_final_iteration=N.pt) that the file will be renamed after each completed epoch.
To Reproduce
add save_final=True to the CheckpointHandler in the Lung Segmentation Tutorial
Thanks for your interest here.
Actually, save_final is used for trainer to save the last checkpoint when training completed or crashed, not for validator to save checkpoint in every validation interval.
For your use case, you can put below handler to the validation handlers:
Activity
Nic-Ma commentedon Dec 10, 2020
Hi @cemde ,
Thanks for your interest here.
Actually,
save_finalis used for trainer to save the last checkpoint when training completed or crashed, not for validator to save checkpoint in every validation interval.For your use case, you can put below handler to the validation handlers:
Thanks.
Nic-Ma commentedon Dec 10, 2020
Hi @cemde ,
I submitted PR #1341 to enhance the
save_finalinCheckpointSaverhandler, when PR merged, you can also use:to achieve your requirement.
Thanks.