refactor ACER (#664)
* make acer use vecframestack * acer passes mnist test with 20k steps * acer with non-image observations and tests * flake8 * test acer serialization with non-recurrent policies
This commit is contained in:
@@ -91,9 +91,7 @@ def build_env(args):
|
||||
env_type, env_id = get_env_type(args.env)
|
||||
|
||||
if env_type in {'atari', 'retro'}:
|
||||
if alg == 'acer':
|
||||
env = make_vec_env(env_id, env_type, nenv, seed)
|
||||
elif alg == 'deepq':
|
||||
if alg == 'deepq':
|
||||
env = make_env(env_id, env_type, seed=seed, wrapper_kwargs={'frame_stack': True})
|
||||
elif alg == 'trpo_mpi':
|
||||
env = make_env(env_id, env_type, seed=seed)
|
||||
|
Reference in New Issue
Block a user