fix bug in compute_stats for action normalization

这个提交包含在:
Cadene
2024-03-11 09:37:56 +00:00
父节点 4cc7e1539e
当前提交 a7ef4a6a33
共有 2 个文件被更改,包括 2 次插入 和 2 次删除

查看文件

@ -54,7 +54,7 @@ class AbstractExperienceReplay(TensorDictReplayBuffer):
return { return {
("observation", "state"): "b c -> 1 c", ("observation", "state"): "b c -> 1 c",
("observation", "image"): "b c h w -> 1 c 1 1", ("observation", "image"): "b c h w -> 1 c 1 1",
("action"): "b c -> 1 c", "action": "b c -> 1 c",
} }
@property @property

查看文件

@ -114,7 +114,7 @@ class AlohaExperienceReplay(AbstractExperienceReplay):
def stats_patterns(self) -> dict: def stats_patterns(self) -> dict:
d = { d = {
("observation", "state"): "b c -> 1 c", ("observation", "state"): "b c -> 1 c",
("action"): "b c -> 1 c", "action": "b c -> 1 c",
} }
for cam in CAMERAS[self.dataset_id]: for cam in CAMERAS[self.dataset_id]:
d[("observation", "image", cam)] = "b c h w -> 1 c 1 1" d[("observation", "image", cam)] = "b c h w -> 1 c 1 1"