Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions environments/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def step(self, action, is_training):
self.lives = current_lives

if self.use_cumulated_reward:
return self.preprocess(screen, terminal), cumulated_reward, terminal, {}
return self.preprocess(screen), cumulated_reward, terminal, {}
else:
return self.preprocess(screen, terminal), reward, terminal, {}
return self.preprocess(screen), reward, terminal, {}

def preprocess(self, raw_screen, terminal):
def preprocess(self, raw_screen):
y = 0.2126 * raw_screen[:, :, 0] + 0.7152 * raw_screen[:, :, 1] + 0.0722 * raw_screen[:, :, 2]
y = y.astype(np.uint8)
y_screen = imresize(y, self.observation_dims)
Expand Down