How do i 'use' a trained model? #7200
Unanswered
vegovs
asked this question in
code help: CV
Replies: 2 comments
-
This is a bug we recently had to fix. You need to skip Lightning version 1.2.8 and either install <= 1.2.7 or >= 1.3.0rc1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
model = YourModelCls.load_from_checkpoint(path_to_model_checkpoint)
model.eval()
segmented_buildings = model(image) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use a model trained with Pytorch Lightning via torch.
As far as I have googled, this is the way:
However, the first error I got when doing this was that Pytorch Lightning module was missing.
Did not know it was needed when just running inference with the weights via torch?
Anyway, after installing the module I got a new error:
What am I doing wrong? Or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions