소스 검색

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

Maxime Chevalier-Boisvert 5 년 전
부모
커밋
67bde16e38
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'
         )