This commit is contained in:
Minghao Zhang 2020-04-21 15:36:08 +08:00 committed by GitHub
parent 4fd826761c
commit 205698dd66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,8 +95,9 @@ class preprocessing(object):
axis=-1)
if self.count >= self.max_episode_steps:
terminal = True
self.terminal = terminal
return observation, total_reward, is_terminal, info
else:
terminal = False
return observation, total_reward, (terminal or is_terminal), info
def _grayscale_obs(self, output):
self.env.ale.getScreenGrayscale(output)