Getting the test score after restoring a pretrained model #10136
-
When I load the saved Lightning model and test on test data, I saw different epochs are running starting from 0, suggesting the model is being trained once again. Please suggest how to get the test score on the test data.
I am using three separate data for training. testing and validation.
First, I train and validate in the following manner
The training is complete and the checkpoints are saved as expected.
I expect it to just test on test data and display the result. But I see the model is running once again for a number of epochs.
pytorch-lightning==1.4.9
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
your code looks correct. Just tested on 1.4.9 it's not running from scratch when you call |
Beta Was this translation helpful? Give feedback.
your code looks correct. Just tested on 1.4.9 it's not running from scratch when you call
trainer.test()
. Can you share a minimal example to reproduce your issue?