kandouss / marlgrid

Gridworld for MARL experiments
Apache License 2.0
137 stars 25 forks source link

Observation shapes do not match #4

Closed parthjaggi closed 4 years ago

parthjaggi commented 4 years ago
env = gym.make('MarlGrid-2AgentEmpty9x9-v0')

act = env.action_space.sample()
obs, rew, done, _ = env.step(act)
obs = np.array(obs)

obs.shape gives me (2, 56, 56, 3), while env.observation_shape gives me Tuple(Box(7, 7, 3), Box(7, 7, 3)). Mismatch between the two.

kandouss commented 4 years ago

Just saw this now :) Good catch! Updated with a quick fix.