Training Environment
Last updated
Last updated
For policy training, we use NVIDIA and . The code containing Berkeley Humanoid Lite training environment can be installed as an extension to the Isaac Lab.
Please refer to for more detailed guidance on installing Isaac Sim and Isaac Lab.
Here, we provide the procedure we followed to install on our machines. We have verified this flow on a fresh install of Ubuntu 24.04.
Some system packages are required by Isaac Lab. We install these first.
Then, create a conda environment to contain all the Python packages.
Use this command to install Isaac Sim 4.5.0.
Clone Issac Lab and switch to the stable release.
Finally, install Isaac Lab and the training frameworks.
After installing the Isaac Lab environment, we can proceed to install the Berkeley Humanoid Lite Extension.
We start by cloning the project repository.
The project repository contains submodules for robot description and low-level code. The submodules can be initialize with this command.
Then, install the modules to IsaacLab environment. Don't forget to check that you are in the correct conda environment (berkeley-humanoid-lite)
!
There are some additional packages required by our project. Run the following script to install them.
Two tasks are defined in the codebase. Velocity-Berkeley-Humanoid-Lite-v0
trains a policy that actuates all 22 degrees of freedom on the robot, and Velocity-Berkeley-Humanoid-Lite-Biped-v0
trains a policy that only controls the 12 degrees of freedom on the leg.
To train the policy, run this following command. By default, we train for 6000 iterations, which should take around two hours.
To view the trained result, run the following command.
In addition to get a visualization of the policy, the play.py
script will also export the trained policy into an ONNX file for deployment. It will also create or update the configs/policy_latest.yaml
configuration file, which records the parameters that will be used during sim2sim and sim2real deployment.
We will see how to use this exported model checkpoint and configuration file in the next section.