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

allow checkpointing setup to be customized #26

Merged
merged 1 commit into from Sep 1, 2022

Conversation

camallen
Copy link
Collaborator

add params for checkpoint setup to the train_default_zoobot_from_scratch function. specifically this PR provides params to change the

  • checkpoint name with / without the metric names
  • last_k outputs

e.g.

train_with_pytorch_lightning.train_default_zoobot_from_scratch(
....
checkpoint_file_template='epoch-{epoch}-supervised_loss-{val/supervised_loss:.2f}',
auto_insert_metric_name=False,
save_top_k=1
)

allow checkpointing setup to be customized
Copy link
Owner

@mwalmsley mwalmsley left a comment

Choose a reason for hiding this comment

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

Hi Cam. Another nice feature, thanks! I see that filename=None gives the default name so I assume this will not break any existing setups. Approved.

@mwalmsley mwalmsley merged commit d89510a into mwalmsley:main Sep 1, 2022
@camallen camallen deleted the allow-custom-checkpoint-setup branch December 6, 2022 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants