Skip to content

Commit

Permalink
revert min pooling reduce res
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Apr 18, 2024
1 parent 380b7d5 commit 19b8b9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from pyboy.utils import WindowEvent
from skimage.transform import resize

import skimage
import pufferlib
from pokemonred_puffer.global_map import GLOBAL_MAP_SHAPE, local_to_global

Expand Down Expand Up @@ -374,8 +373,8 @@ def render(self):
game_pixels_render = np.expand_dims(self.screen.ndarray[:, :, 1], axis=-1)

if self.reduce_res:
# game_pixels_render = game_pixels_render[::2, ::2, :]
game_pixels_render = skimage.measure.block_reduce(game_pixels_render, (2, 2, 1), np.min)
game_pixels_render = game_pixels_render[::2, ::2, :]
# game_pixels_render = skimage.measure.block_reduce(game_pixels_render, (2, 2, 1), np.min)

# place an overlay on top of the screen greying out places we haven't visited
# first get our location
Expand Down

0 comments on commit 19b8b9f

Please sign in to comment.