Directory structure / config file location with different loggers and LightningCLI #12728
Replies: 1 comment
-
There are additional problems with the SafeConfigCallback when using multiple loggers. I have a directory structure like this: However, if multiple loggers are defined (e.g. I additionally define the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm observing some inconsistent behavior with different loggers with LightningCLI.
The arguments I'm using are:
--trainer.logger=<LoggerClass> --trainer.logger.save_dir=exp/
With
TensorBoardLogger
, I get a directory likeexp/lightning_logs/version_0
containingconfig.yaml
,hparams.yaml
, TensorBoard logs and checkpoints.With
CSVLogger
, I get a directory likeexp/lightning_logs/version_0
containinghparams.yaml
,metrics.csv
and checkpoints, but notconfig.yaml
With
WandbLogger
(which is actually the one I want to use), I get the directoriesexp/wandb/run-20220411_164045-3ip6qv9j
andexp/my-project/3ip6qv9j
(wheremy-project
is my W&B project name and3ip6qv9j
is the W&B run ID), with the latter containing the checkpoints but no config files.In both
WandbLogger
andCSVLogger
, theconfig.yaml
file gets written directly toexp/
, which prevents the next run from starting:So I'm wondering what is actually the expected behavior, whether I'm using the loggers correctly, and what I can do to prevent the
config.yaml
error from happening.Beta Was this translation helpful? Give feedback.
All reactions