Skip to content

Commit

Permalink
fix(wandb): key messed in wandb option parsing (#1314)
Browse files Browse the repository at this point in the history
fix(wandb): key messed in wandb option parsing
  • Loading branch information
StephanXu committed May 17, 2022
1 parent c8d12a5 commit 11ca4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolox/core/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def before_train(self):
wandb_params = dict()
for k, v in zip(self.args.opts[0::2], self.args.opts[1::2]):
if k.startswith("wandb-"):
wandb_params.update({k.lstrip("wandb-"): v})
wandb_params.update({k[len("wandb-"):]: v})
self.wandb_logger = WandbLogger(config=vars(self.exp), **wandb_params)
else:
raise ValueError("logger must be either 'tensorboard' or 'wandb'")
Expand Down

0 comments on commit 11ca4b0

Please sign in to comment.