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

checkpoint is loaded twice #24

Closed
unrea1-sama opened this issue Jul 18, 2022 · 0 comments
Closed

checkpoint is loaded twice #24

unrea1-sama opened this issue Jul 18, 2022 · 0 comments

Comments

@unrea1-sama
Copy link

unrea1-sama commented Jul 18, 2022

It seems that checkpoint is loaded twice.

The checkpoint is loaded according to path specified by hparams['load_checkpoint'].

model = task.build_model()

However, the checkpoint is loaded again

checkpoint, _ = get_last_checkpoint(self.work_dir, self.resume_from_checkpoint)
if checkpoint is not None:
self.restore_weights(checkpoint)

This can overwrite model parameters with the last checkpoint, which means that hparams['load_checkpoint'] is useless.

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

No branches or pull requests

1 participant