Skip to content

Commit

Permalink
properly init wandb
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 21, 2024
1 parent c8b1d63 commit 9cd294b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def evaluate(self):

for k, v in self.infos.items():
if "_map" in k and self.wandb_client is not None:
self.stats[f"Media/{k}"] = self.wandb.Image(v[0])
self.stats[f"Media/{k}"] = self.wandb_client.Image(v[0])
continue
elif "state" in k:
pass
Expand Down
2 changes: 1 addition & 1 deletion pokemonred_puffer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def train(

wandb_client = None
if args.track:
wandb_client = init_wandb(args).id
wandb_client = init_wandb(args)

if args.mode == "train":
train(args, env_creator, wandb_client)
Expand Down

0 comments on commit 9cd294b

Please sign in to comment.