Skip to content

Commit

Permalink
fix issue with naming wandb runs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlpss committed Nov 6, 2023
1 parent cec24ca commit 580365e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions keypoint_detection/tasks/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ def train(hparams: dict) -> Tuple[KeypointDetector, pl.Trainer]:

data_module = KeypointsDataModule(**hparams)
wandb_logger = WandbLogger(
name=hparams["wandb_name"],
project=hparams["wandb_project"],
entity=hparams["wandb_entity"],
# these are already set in the wandb init (to start from a sweep config)
# name=hparams["wandb_name"],
# project=hparams["wandb_project"],
# entity=hparams["wandb_entity"],
save_dir=get_wandb_log_dir_path(),
log_model=True, # only log checkpoints at the end of training, i.e. only log the best checkpoint
# not suitable for expensive training runs where you might want to restart from checkpoint
Expand Down Expand Up @@ -141,6 +142,7 @@ def train_cli():
# these can then be found in the 'config'
# (so wandb params > argparse)
wandb.init(
name=hparams["wandb_name"],
project=hparams["wandb_project"],
entity=hparams["wandb_entity"],
config=hparams,
Expand Down

0 comments on commit 580365e

Please sign in to comment.