Skip to content

How to save checkpoints? #8

@joandies

Description

@joandies

I've seen that the function train has an input "checkpoint_to_load=None", I would like to know how to adapt the code so that after each epoch it saves its weights. Because I've calculated the total time of my training and it is around 48h, so I want to save my weights periodically.

def train(get_batches, data_shape, checkpoint_to_load=None):

Sorry if it's a stupid question, I'm a starter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions