Skip to content
Discussion options

You must be logged in to vote

This might work:

def on_save_checkpoint(checkpoint):
    # pop the backbone here using custom logic
    del checkpoint['state_dict'][backbone_keys]

LitModel.load_from_checkpoint(ckpt_path, strict=False)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Achazwl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment