We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c41c26 commit aece353Copy full SHA for aece353
PolicyGradient/a3c/train.py
@@ -34,8 +34,11 @@
34
35
FLAGS = tf.flags.FLAGS
36
37
-def make_env():
38
- return atari_helpers.AtariEnvWrapper(gym.envs.make(FLAGS.env))
+def make_env(wrap=True):
+ env = gym.envs.make(FLAGS.env)
39
+ if wrap:
40
+ env = atari_helpers.AtariEnvWrapper(env)
41
+ return env
42
43
# Depending on the game we may have a limited action space
44
env_ = make_env()
@@ -102,7 +105,7 @@ def make_env():
102
105
# Used to occasionally save videos for our policy net
103
106
# and write episode rewards to Tensorboard
104
107
pe = PolicyMonitor(
- env=make_env(),
108
+ env=make_env(wrap=False),
109
policy_net=policy_net,
110
summary_writer=summary_writer,
111
saver=saver)
0 commit comments