isaac-sim / IsaacGymEnvs

Isaac Gym Reinforcement Learning Environments
Other
1.94k stars 411 forks source link

How to train the HumanoidAMP task with different motion files #206

Closed hieutrongnguyen closed 7 months ago

hieutrongnguyen commented 7 months ago

Hello. Thanks all the authors for this wonderful work. I'm playing with the HumanoidAMP task. However, I can just train with one single motion file defined in the HumanoidAMP.yaml file (for example, train with just walking motion, or just running motion). When I tried training with multiple motion files, I modified the motion file in the configuration file HumanoidAMP.yaml as:

motion_file: ["amp_humanoid_run.npy", "amp_humanoid_walk.npy"]

but it didn't work. I also tried to modify the code but it has not yet been successful. So I would like to ask anyone who solved similar problems before. Thank you so much for your help!

hieutrongnguyen commented 7 months ago

I solved the problem. Change the motion_file in the configuration file HumanoidAMP.yaml as a yaml file, for example dataset_humanoidAMP.yaml:

motion_file: dataset_humanoidAMP.yaml

where dataset_humanoidAMP.yaml is located in the same folder with motion files, and its content is similar to as follows:

motions: