Skip to content

Commit

Permalink
Fix travis build due to ACER loading env
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jan 10, 2019
1 parent 3a60a58 commit 5de5b28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion enjoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
should_render=not args.no_render,
hyperparams=hyperparams)

model = ALGOS[algo].load(model_path, env=env)
# ACER raises errors because the environment passed must have
# the same number of environments as the model was trained on.
load_env = None if algo == 'acer' else env
model = ALGOS[algo].load(model_path, env=load_env)

obs = env.reset()

Expand Down

0 comments on commit 5de5b28

Please sign in to comment.