fix aloha pixels env test
This commit is contained in:
parent
4371a5570d
commit
e1ac5dc62f
|
@ -48,8 +48,15 @@ class AlohaEnv(gym.Env):
|
||||||
dtype=np.float64,
|
dtype=np.float64,
|
||||||
)
|
)
|
||||||
elif self.obs_type == "pixels":
|
elif self.obs_type == "pixels":
|
||||||
self.observation_space = spaces.Box(
|
self.observation_space = spaces.Dict(
|
||||||
low=0, high=255, shape=(self.observation_height, self.observation_width, 3), dtype=np.uint8
|
{
|
||||||
|
"top": spaces.Box(
|
||||||
|
low=0,
|
||||||
|
high=255,
|
||||||
|
shape=(self.observation_height, self.observation_width, 3),
|
||||||
|
dtype=np.uint8,
|
||||||
|
)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
elif self.obs_type == "pixels_agent_pos":
|
elif self.obs_type == "pixels_agent_pos":
|
||||||
self.observation_space = spaces.Dict(
|
self.observation_space = spaces.Dict(
|
||||||
|
|
Loading…
Reference in New Issue