Skip to content

Commit 23eedb9

Browse files
Using the same name to save the config yaml file
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
1 parent cd319cb commit 23eedb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

terratorch/cli_tools.py

+2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def setup(self, trainer: Trainer, pl_module: LightningModule, stage: str) -> Non
182182
if self.already_saved:
183183
return
184184

185+
_, self.config_filename = os.path.split(self.config.config[0].abs_path)
186+
185187
if self.save_to_log_dir:
186188
log_dir = trainer.log_dir or trainer.default_root_dir # this broadcasts the directory
187189
if log_dir is None:

0 commit comments

Comments
 (0)