import numpy as np
import gymnasium as gym
import ale_py
gym.register_envs(ale_py)
# env = gym.make( "ALE/Breakout-v5", obs_type="ram", render_mode="human")
env = gym.make( "ALE/MsPacman-v5", obs_type="ram", render_mode="human")
obs, _ = env.reset()
for step in range(100):
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)
print(observation)
print(step, action, observation.shape, np.unique(observation))
env.close()
Using obs_type="ram" means that the observation elements are constant.
This implies that the obs_type is bugged, most likely occurring during the update to 0.9.0
Using
obs_type="ram"
means that the observation elements are constant. This implies that theobs_type
is bugged, most likely occurring during the update to 0.9.0