Skip to content

IndexError when running train_hydra.py with a single motion file #68

@zhang705

Description

@zhang705

I ran the following command:
python legged_gym/legged_gym/scripts/train_hydra.py --config-name=config_teleop task=h1:teleop run_name=OmniH2O_TEACHER env.num_observations=913 env.num_privileged_obs=990 motion.teleop_obs_version=v-teleop-extend-max-full motion=motion_full motion.extend_head=True num_envs=16 asset.zero_out_far=False asset.termination_scales.max_ref_motion_distance=1.5 sim_device=cuda:0 motion.motion_file=resources/motions/h1/stable_punch.pkl rewards=rewards_teleop_omnih2o_teacher rewards.penalty_curriculum=True rewards.penalty_scale=0.5

And got the following error:

/home/zl/human2humanoid/phc/phc/utils/motion_lib_base.py(158)load_data()
157 import ipdb; ipdb.set_trace()
--> 158 self._motion_data_load = joblib.load(self._motion_data_load[0]) # set self._motion_data_load to a sample of the data
159
ipdb> self._motion_data_load
[]
ipdb> c
Error executing job with overrides: [...]
IndexError: list index out of range

This happened despite the motion file stable_punch.pkl existing and being readable with joblib.load(). Let me know if you need any more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions