From 19b8b9f7a4e122c479633e1fb05cb82ddece0989 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:31:35 -0400 Subject: [PATCH] revert min pooling reduce res --- pokemonred_puffer/environment.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index ac5a305..f896818 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -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 @@ -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