Apply suggestions from code review

Co-authored-by: Alexander Soare <alexander.soare159@gmail.com>
This commit is contained in:
Remi 2024-05-31 12:02:26 +02:00 committed by GitHub
parent b6d80052c4
commit b60f4efa7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ available_datasets = list(
itertools.chain(*available_datasets_per_env.values(), available_real_world_datasets)
)
# refers to attribute "name" of policy instance
# lists all available policies from `lerobot/common/policies` by their class attribute: `name`.
available_policies = [
"act",
"diffusion",

View File

@ -77,7 +77,7 @@ def get_policy_stats(env_name, policy_name, extra_overrides):
batch = next(iter(dataloader))
obs = {}
for k in batch:
if "observation" in k:
if k.startswith("observation"):
obs[k] = batch[k]
if "n_action_steps" in cfg.policy: