How to reduce the time to test a single image? #9888
Unanswered
x12901
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Dear @x12901, I am not fully sure to grasp your problem. Would you mind explaining more in details where the time is lost and what you are trying to do. Do you have only 1 image in your test dataset ? Best, |
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
-
How to reduce the time to test a single image
I want to test a single image, but I have to load the model once every time, which is a waste of time. I load the model in on_test_start() and predict the images in test_step(). Is it possible to load the image directly into test_step() without going to on_test_start() ?
Beta Was this translation helpful? Give feedback.
All reactions