Add test_aloha env test

这个提交包含在:
Simon Alibert
2024-03-26 16:23:34 +01:00
父节点 58df2066a9
当前提交 6bddcb647e
共有 2 个文件被更改,包括 23 次插入 和 1 次删除

查看文件

@ -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)