Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jacob/windnet' into jacob/windnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Feb 6, 2024
2 parents 8888f4d + 9bb5c96 commit 6249e83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvnet/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def train(config: DictConfig) -> Optional[float]:
if isinstance(callback, ModelCheckpoint):
# Need to call the .experiment property to initialise the logger
wandb_logger.experiment
callback.dirpath = "/".join(callback.dirpath.split("/")[:-1] + [
wandb_logger.version
])
callback.dirpath = "/".join(
callback.dirpath.split("/")[:-1] + [wandb_logger.version]
)
# Also save model config here - this makes for easy model push to huggingface
os.makedirs(callback.dirpath, exist_ok=True)
OmegaConf.save(config.model, f"{callback.dirpath}/model_config.yaml")
Expand Down

0 comments on commit 6249e83

Please sign in to comment.