Supemario, game screenshot works?

I think SUPERMARIO game play video was shown when I tested with Startkit-ver1.

But, recent updated startkit doesn’t show game play video for SUPERMARIO.
( I can see the game screenshot file for 2048 with recent updated starter kit )

Anyone can see the game play screen (or screenshot logs) for SUPERMARIO with the updated startkit?

yes, i saw that too, they’ve changed starter evaluation codebase so it run in headless mode, without visualization.

Hello @RickySong @ChoiSoojin,

On the evaluation server, we run the games using the same scripts as the ones in the starter kit. To keep the behavior consistent, we updated the starter kit to run in headless mode as well.

If you’d like to enable visualizations again, you can switch the environment creation line in super_mario_env.py (around line 217):

to:

self.env = gym_super_mario_bros.make(
    'SuperMarioBros-1-1-v1',
    render_mode='human',
    apply_api_compatibility=True
)

I found a way to save the screenshot files.
“obs” variable has screenshot info.
check the code below.

def save_image(obs, basename):
img = obs.get(“obs_image”, None)
if img is not None:
img.save(os.path.join(LOG_DIR, f"{basename}.jpg"), format=“JPEG”)

def act(self, obs):
save_image(obs, “basename”)

1 Like