|
@@ -135,7 +135,7 @@ class OneHotPartialObsWrapper(gym.core.ObservationWrapper):
|
|
|
|
|
|
def observation(self, obs):
|
|
|
img = obs['image']
|
|
|
- out = np.zeros(self.observation_space.shape, dtype='uint8')
|
|
|
+ out = np.zeros(self.observation_space.spaces['image'].shape, dtype='uint8')
|
|
|
|
|
|
for i in range(img.shape[0]):
|
|
|
for j in range(img.shape[1]):
|