Skip to content

Commit

Permalink
Explaining that actions are normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyaghosh committed Dec 13, 2023
1 parent 3fdd859 commit 2eac974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion octo/model/octo_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class OctoModel:
>>> tasks = model.create_tasks(texts=["go to the red room"])
>>> # or tasks = model.create_tasks(goals={"image_primary": goal_images})
>>> actions = model.sample_actions(observations, tasks, rng=jax.random.PRNGKey(0))
>>> # Note: these are normalized actions (processed to mean 0 and std 1). To get the raw actions,
# un-normalize them using model.dataset_statistics
Usage for finetuning:
Expand Down Expand Up @@ -397,7 +399,8 @@ def _init(rng):
)

def get_pretty_spec(self):
# TODO: generalize this to work with other models
"""Brief summary of the model's expected inputs and outputs."""
# TODO: generalize this to print out proprio when it is being tokenized
window_size = self.example_batch["observation"]["pad_mask"].shape[1]

observation_space = {
Expand Down

0 comments on commit 2eac974

Please sign in to comment.