Skip to content

Commit

Permalink
feat: add wandb_dir as cfg argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioseel committed Nov 18, 2024
1 parent 6810db5 commit 8f3bb78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sample_factory/cfg/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,13 @@ def add_wandb_args(p: ArgumentParser):
nargs="*",
help="Tags can help with finding experiments in WandB web console",
)
p.add_argument(
"--wandb_dir",
default="wandb",
type=str,
nargs="*",
help="Logging Directory for WandB",
)


def add_pbt_args(p: ArgumentParser):
Expand Down
1 change: 1 addition & 0 deletions sample_factory/utils/wandb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def init_wandb_func():
tags=cfg.wandb_tags,
resume="allow",
settings=wandb.Settings(start_method="fork"),
dir=cfg.wandb_dir,
)

log.debug("Initializing WandB...")
Expand Down

0 comments on commit 8f3bb78

Please sign in to comment.