LightningCLI: suggested structure for callbacks/loggers #18636
Unanswered
adamjstewart
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments 3 replies
-
For this you should configure-forced-callbacks. For the loggers I am not sure. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
@adamjstewart Just curious if you still need clarification; I noticed the linked PR has been merged. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
In torchgeo/torchgeo#1559, we're trying to replace our custom
train.pyscript with a LightningCLI implementation. There are still a couple remaining things that I'm trying to translate.By default, we would like all runs to use the following callbacks:
and loggers:
We would also like the user to be able to control where the checkpoints/log files get saved (experiment directory) and what name they are saved under (experiment name).
ModelCheckpoint has an optional
dirpathattribute. If it isn't set, the user can control it via--trainer.default_root_dir. However, thesave_dirparameter of CSVLogger and TensorBoardLogger is required, so it doesn't seem possible to use--trainer.default_root_dirto control it. And the experimentnamehas to be passed when creating the logger. What's the best way to handle this?@calebrob6
Beta Was this translation helpful? Give feedback.
All reactions