Skip to content

Commit

Permalink
Fix path for wandb models
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarez5341 committed Jan 15, 2024
1 parent afd77e4 commit e800153
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ ocean:
num_envs: 8
batch_rows: 32
bptt_horizon: 4
device: cpu
env:
name: squared
bandit:
Expand Down
4 changes: 2 additions & 2 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ def train(args, env_module, make_env):
args.exp_name = init_wandb(args, env_module).id
elif args.baseline:
args.track = True
args.exp_name = args.config
args.exp_name = f'puf-{pufferlib.__version__}-{args.config}'
args.wandb_group = f'puf-{pufferlib.__version__}-baseline'
shutil.rmtree(f'experiments/{args.exp_name}', ignore_errors=True)
run = init_wandb(args, env_module, name=args.exp_name, resume=False)
if args.mode == 'evaluate':
model_name = f'puf{pufferlib.__version__}-{args.config}_model:latest'
model_name = f'puf-{pufferlib.__version__}-{args.config}_model:latest'
artifact = run.use_artifact(model_name)
data_dir = artifact.download()
model_file = max(os.listdir(data_dir))
Expand Down
2 changes: 1 addition & 1 deletion pufferlib/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.6.0'
__version__ = '0.6.1'

0 comments on commit e800153

Please sign in to comment.