Where are model predictions saved by LightningCLI? #14316
-
I am trying to understand how the As far as I can tell, it would be calling the lightning module's Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, the return of subcommand is not saved in LightningCLI. You can instance CLI with cli = LightningCLI(run=False)
cli.trainer.predict(...) |
Beta Was this translation helpful? Give feedback.
-
For more context about this topic, read #12438 |
Beta Was this translation helpful? Give feedback.
Hi, the return of subcommand is not saved in LightningCLI.
https://github.com/Lightning-AI/lightning/blob/0ca3b5aa1b16667cc2d006c3833f4953b5706e72/src/pytorch_lightning/cli.py#L623-L630
You can instance CLI with
run=False
or Hack theLightningCLI
directly to make sure it return results.