You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/train_motion_tracking.md
+56-11Lines changed: 56 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,25 @@ The LMDB database will be created at the specified `dump_dir`.
49
49
50
50
### 2. Train the Motion Tracking Model
51
51
52
-
The training entry point is `holomotion/src/training/train_motion_tracking.py`, which uses the training config to start distributed training across multiple GPUs.
The training entry point is `holomotion/src/training/train_motion_tracking.py`, which uses the training config to start distributed training across multiple GPUs. It is recommended to train with a three-stage procedure:
66
+
1. Teacher training stage 1: train the teacher policy without domain randomization;
67
+
2. Teacher training stage 2: load the stage1 checkpoint and train with domain randomization;
68
+
3. Student training stage 3: load the teacher stage2 checkpoint and conduct distillation with domain randomization.
53
69
54
-
#### 2.1 Prepare the Training Config
70
+
#### 2.1 Explaining the Training Config
55
71
56
72
Use the demo config at `holomotion/config/training/motion_tracking/exp_unitree_g1_21dof_teacher.yaml` as a template. Key configuration groups to modify (configs are located in the `holomotion/config/` directory):
57
73
@@ -80,18 +96,47 @@ defaults:
80
96
project_name: HoloMotion
81
97
```
82
98
83
-
#### 2.2 Prepare the Training Script for Teacher
99
+
#### 2.2 Prepare the Training Scripts for Teacher (Stage 1 and 2)
84
100
85
101
Review and modify the training script at `holomotion/scripts/training/train_motion_tracking_teacher.sh`. Ensure `config_name` and `motion_file` match your training config and LMDB database directory.
86
102
103
+
Start training your teacher policy from stage1, where domain randomization is turned off.
@@ -171,6 +216,6 @@ You may want to have more or less frequent logging and model dumping intervals.
171
216
172
217
By default, the model checkpoint will be dumped into a folder named `logs/HoloMotion`. You can change this path by explictly setting `project_name=X`, which results in dumping the checkpoints into the `logs/X` directory.
173
218
174
-
#### How to resume training from a checkpoint ?
219
+
#### How to resume training or load pretrained model from a checkpoint ?
175
220
176
221
To resume training from a pretrained checkpoint, you can find the checkpoint in the log directory, and then add the option like this: `checkpoint=logs/HoloMotion/20250728_214414-train_unitree_g1_21dof_teacher/model_X.pt`
0 commit comments