Skip to content

Commit a423453

Browse files
author
laurens
committed
Fix model name
1 parent cfcdc87 commit a423453

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ def run(args):
8484
if args.switch_goal and logger.n_eps == 1000:
8585
torch.save({'model_params': option_critic.state_dict(),
8686
'goal_state': env.goal},
87-
'models/option_critic_{args.seed}_1k')
87+
f'models/option_critic_seed={args.seed}_1k')
8888
env.switch_goal()
8989
print(f"New goal {env.goal}")
9090

9191
if args.switch_goal and logger.n_eps > 2000:
9292
torch.save({'model_params': option_critic.state_dict(),
9393
'goal_state': env.goal},
94-
'models/option_critic_{args.seed}_2k')
94+
f'models/option_critic_seed={args.seed}_2k')
9595
break
9696

9797
done = False ; ep_steps = 0 ; option_termination = True ; curr_op_len = 0

0 commit comments

Comments
 (0)