Apply suggestions from code review
Co-authored-by: Alexander Soare <alexander.soare159@gmail.com>
This commit is contained in:
parent
b6d80052c4
commit
b60f4efa7c
|
@ -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",
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue