Skip to content

Commit

Permalink
Fix runner eval test (#170)
Browse files Browse the repository at this point in the history
* Fix runner eval test

* double negative
  • Loading branch information
chrismatix authored Oct 25, 2023
1 parent 7ef09e1 commit 00a6b6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pax/runners/runner_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ def run_loop(self, env, env_params, agents, num_episodes, watchers):
self.model_path2 is not None and self.run_path2 is not None
)

if watchers and not self.args.wandb.mode == "offline":
if watchers and self.args.wandb.mode not in [
"offline",
"disabled",
]:
wandb.restore(
name=self.model_path, run_path=self.run_path, root=os.getcwd()
)
Expand Down

0 comments on commit 00a6b6f

Please sign in to comment.