Skip to content

Commit

Permalink
Remove wand version
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Dec 11, 2023
1 parent cfe079b commit e3db3ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pvnet/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ def train(config: DictConfig) -> Optional[float]:
for callback in callbacks:
log.info(f"{callback}")
if isinstance(callback, ModelCheckpoint):
print(callback)
print(wandb_logger)
callback.dirpath = "/".join(
callback.dirpath.split("/")[:-1] + [wandb_logger.version]
callback.dirpath.split("/")[:-1]
)
# Also save model config here - this makes for easy model push to huggingface
os.makedirs(callback.dirpath, exist_ok=True)
Expand Down

0 comments on commit e3db3ea

Please sign in to comment.