Add test_aloha env test

This commit is contained in:
Simon Alibert
2024-03-26 16:23:34 +01:00
parent 58df2066a9
commit 6bddcb647e
2 changed files with 23 additions and 1 deletions

View File

@@ -206,7 +206,7 @@ class AlohaEnv(AbstractEnv):
if self.from_pixels:
if isinstance(self.image_size, int):
image_shape = (3, self.image_size, self.image_size)
elif OmegaConf.is_list(self.image_size):
elif OmegaConf.is_list(self.image_size) or isinstance(self.image_size, list):
assert len(self.image_size) == 3 # c h w
assert self.image_size[0] == 3 # c is RGB
image_shape = tuple(self.image_size)