Browse Source

Remove extra dimension in FlatObsWrapper. In response to #86.

Maxime Chevalier-Boisvert 5 years ago
parent
commit
67bde16e38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gym_minigrid/wrappers.py

+ 1 - 1
gym_minigrid/wrappers.py

@@ -265,7 +265,7 @@ class FlatObsWrapper(gym.core.ObservationWrapper):
         self.observation_space = spaces.Box(
             low=0,
             high=255,
-            shape=(1, imgSize + self.numCharCodes * self.maxStrLen),
+            shape=(imgSize + self.numCharCodes * self.maxStrLen,),
             dtype='uint8'
         )