You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the env returns observation space shape of Box(480, 640, 3), while the actual frame returned by step() has a shape of (200, 400, 3). For me the frames need to be rotated 90 degrees clockwise to match the actual game screen.
The obs space dimensions seem to be hard-wired in tetris_env.py. I wonder if line 6 should be instead,
SCREEN_WIDTH, SCREEN_HEIGHT = 200,400
Also, line 17 should be,
self.observation_space = spaces.Box(low=0, high=255, shape=(SCREEN_WIDTH, SCREEN_HEIGHT, 3))
Thanks!
The text was updated successfully, but these errors were encountered:
It looks like the env returns observation space shape of Box(480, 640, 3), while the actual frame returned by step() has a shape of (200, 400, 3). For me the frames need to be rotated 90 degrees clockwise to match the actual game screen.
The obs space dimensions seem to be hard-wired in tetris_env.py. I wonder if line 6 should be instead,
SCREEN_WIDTH, SCREEN_HEIGHT = 200,400
Also, line 17 should be,
self.observation_space = spaces.Box(low=0, high=255, shape=(SCREEN_WIDTH, SCREEN_HEIGHT, 3))
Thanks!
The text was updated successfully, but these errors were encountered: