-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix weights_save_path when logger is used + simplify path handling + better docs #2681
Conversation
Hello @awaelchli! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-07-26 22:50:11 UTC |
@@ -53,10 +47,6 @@ def configure_checkpoint_callback(self, checkpoint_callback): | |||
if checkpoint_callback: | |||
checkpoint_callback.save_function = self.save_checkpoint | |||
|
|||
# if weights_save_path is still none here, set to current working dir | |||
if self.weights_save_path is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this what will be the path? just none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it will still be default_root_dir, it's just getting set in the Trainer init now.
@awaelchli make sure to list the Fixed in different lines so the GH issues close automatically Fixes a |
ok, got it, did not know, thanks. |
What does this PR do?
Fixes #2527, #882, #1812 and continues effort to document and protect Trainer attributes #1497 better.
weights_save_path
.weights_save_path
only gets picked if it actually was changed by user.weights_save_path
not getting used when logger=Falsetrainer.ckpt_path
since it was never actually different fromweights_save_path
, and never used anywhere in the code base.weights_save_path
, it's not needed and prevented multiple checkpoint callbacks being used.Before submitting