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

Loading from checkpoint? #141

Open
jamesafranke opened this issue Jun 5, 2024 · 0 comments
Open

Loading from checkpoint? #141

jamesafranke opened this issue Jun 5, 2024 · 0 comments

Comments

@jamesafranke
Copy link

Hi - Thanks so much for the amazing package.

Is there any easy way to load a checkpoint so that I can do inference with the trained model. Something like:

.
.
exp = BaseExperiment(args, dataloaders=(dataloader_train, dataloader_val, dataloader_test), strategy='ddp')
PATH = './checkpoints/best.ckpt'
exp.load_from_checkpoint(PATH)

exp.eval()
y_hat = exp(x)

Thanks in advance!

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