Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lerobot/common/policies/act/modeling_act.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def select_action(self, batch: dict[str, Tensor]) -> Tensor:
environment. It works by managing the actions in a queue and only calling `select_actions` when the
queue is empty.
"""
assert "observation.images.top" in batch
assert "observation.state" in batch

self.eval()

batch = self.normalize_inputs(batch)
Expand Down
1 change: 0 additions & 1 deletion lerobot/common/policies/diffusion/modeling_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def select_action(self, batch: dict[str, Tensor]) -> Tensor:
"""
assert "observation.image" in batch
assert "observation.state" in batch
assert len(batch) == 2

batch = self.normalize_inputs(batch)

Expand Down
1 change: 0 additions & 1 deletion lerobot/common/policies/tdmpc/modeling_tdmpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def select_action(self, batch: dict[str, Tensor]):
"""Select a single action given environment observations."""
assert "observation.image" in batch
assert "observation.state" in batch
assert len(batch) == 2

batch = self.normalize_inputs(batch)

Expand Down