"Error: 'MyDataModule' object is not iterable" when calling trainer.predict(model, data) #7425
Answered
by
carmocca
dianemarquette
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi! I've trained a model successfully. I now want to have a look at the model predictions. I've overridden the
Then, I initialize the model using my checkpoint and call the
Unfortunately, I get the following error
I don't understand what I messed up ^^'. Any help / tip would be greatly appreciated :) |
Beta Was this translation helpful? Give feedback.
Answered by
carmocca
May 7, 2021
Replies: 1 comment 1 reply
-
Sorry! We did not add support for You need to do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
carmocca
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry! We did not add support for
trainer.predict(model, datamodule)
. We'll do it asap!You need to do
trainer.predict(model, datamodule=datamodule)