Saving predictions to file using LightningCLI #14817
Unanswered
vikigenius
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
You can ref #14316. Using the callback is a nice idea in the current situation without hacking the CLI directly. To add a callback to CLI: LightningCLI(
...
trainer_defaults={
"callbacks": [
prediction_callback,
]
},
) or python cli.py prediction --callbacks+ src.callbacks.prediction_callbacks ... |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The predict command in LightningCLI does not specify anything about saving the predictions to file. Are they saved anywhere?
If not how can I extend LightningCLI pedict command to save the predictions, preferably by saving to a specific location.
I see that there is a BasePredictionWriter callback, but I have no idea how to use it or add it to the LightningCLI specifically for the predict subcommand
Beta Was this translation helpful? Give feedback.
All reactions