bug fix for atari env
This commit is contained in:
parent
7e67dc6910
commit
d3156ecb06
@ -1,3 +1,4 @@
|
||||
import gym
|
||||
import numpy as np
|
||||
|
||||
|
||||
@ -64,6 +65,16 @@ class Atari:
|
||||
self._done = True
|
||||
self._step = 0
|
||||
|
||||
@property
|
||||
def observation_space(self):
|
||||
img_shape = self._size + ((1,) if self._gray else (3,))
|
||||
print(self._env.observation_space)
|
||||
return gym.spaces.Dict(
|
||||
{
|
||||
"image": gym.spaces.Box(0, 255, img_shape, np.uint8),
|
||||
}
|
||||
)
|
||||
|
||||
@property
|
||||
def action_space(self):
|
||||
space = self._env.action_space
|
||||
|
Loading…
x
Reference in New Issue
Block a user