Skip to content

Commit

Permalink
Make wandb project name configurable (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielilharco authored Dec 8, 2022
1 parent 23ddc99 commit 00ec2e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def main(args):
args.val_sz = data["val"].dataloader.num_samples
# you will have to configure this for your project!
wandb.init(
project="open-clip",
project=args.wandb_project_name,
name=args.name,
notes=args.wandb_notes,
tags=[],
Expand Down
6 changes: 6 additions & 0 deletions src/training/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ def parse_args(args):
type=str,
help="Notes if logging with wandb"
)
parser.add_argument(
"--wandb-project-name",
type=str,
default='open-clip',
help="Name of the project if logging with wandb.",
)
parser.add_argument(
"--debug",
default=False,
Expand Down

0 comments on commit 00ec2e7

Please sign in to comment.