Skip to content

Commit

Permalink
Log the map fewer times
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 27, 2024
1 parent a2f2098 commit 011657a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,9 @@ def evaluate(self):
for k, v in self.infos.items():
# Moves into models... maybe. Definitely moves.
# You could also just return infos and have it in demo
if "pokemon_exploration_map" in self.infos and self.config.save_overlay is True:
if "pokemon_exploration_map" in k and self.config.save_overlay is True:
if self.epoch % self.config.overlay_interval == 0:
overlay = make_pokemon_red_overlay(
np.stack(self.infos["pokemon_exploration_map"], axis=0)
)
overlay = make_pokemon_red_overlay(np.stack(self.infos[k], axis=0))
if self.wandb_client is not None:
self.stats["Media/aggregate_exploration_map"] = wandb.Image(
overlay, file_type="jpg"
Expand Down

0 comments on commit 011657a

Please sign in to comment.