Skip to content

Commit

Permalink
call self.reset() in ACT
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-soare committed May 9, 2024
1 parent 4cfebf1 commit 2ea8ad4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lerobot/common/policies/act/modeling_act.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def __init__(

self.expected_image_keys = [k for k in config.input_shapes if k.startswith("observation.image")]

self.reset()

def reset(self):
"""This should be called whenever the environment is reset."""
if self.config.n_action_steps is not None:
Expand Down

0 comments on commit 2ea8ad4

Please sign in to comment.