Skip to content
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

Add filename parameter to ModelCheckpoint #2584

Closed
wants to merge 2 commits into from
Closed

Add filename parameter to ModelCheckpoint #2584

wants to merge 2 commits into from

Conversation

wietsedv
Copy link

What does this PR do?

Adds filename parameter to ModelCheckpoint. See issue #2583.

@mergify mergify bot requested a review from a team July 11, 2020 13:43
@mergify mergify bot requested a review from a team July 11, 2020 14:51
@Borda Borda added the feature Is an improvement or enhancement label Jul 15, 2020
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PyTorchLightning/core-contributors mind check this API update?

pytorch_lightning/callbacks/model_checkpoint.py Outdated Show resolved Hide resolved
@@ -95,7 +95,7 @@ class ModelCheckpoint(Callback):

def __init__(self, filepath: Optional[str] = None, monitor: str = 'val_loss', verbose: bool = False,
save_last: bool = False, save_top_k: int = 1, save_weights_only: bool = False,
mode: str = 'auto', period: int = 1, prefix: str = ''):
mode: str = 'auto', period: int = 1, prefix: str = '', filename: Optional[str] = None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing docs for the new parameter

@mergify mergify bot requested a review from a team July 15, 2020 09:51
@mergify
Copy link
Contributor

mergify bot commented Jul 24, 2020

This pull request is now in conflict... :(

@Borda Borda added this to the 0.9.0 milestone Aug 6, 2020
@awaelchli awaelchli modified the milestones: 0.9.0, 1.0.0 Aug 8, 2020
@mergify
Copy link
Contributor

mergify bot commented Aug 9, 2020

This pull request is now in conflict... :(

@rohitgr7
Copy link
Contributor

I think this is a good feature, having separate dirpath and filename solves a lot of issues. I prefer it should be dirpath instead of filepath.

@Borda Borda closed this in #3163 Sep 18, 2020
@Borda
Copy link
Member

Borda commented Sep 18, 2020

@wietsedv is this still needed after #3163 was merged? (then we can reopen it...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants