培养一个政策
选择ACT,扩散政策和SmolVLA. 在数据集中训练ACT政策,阅读训练日志,管理检查站. ~ 3小时.
列车政策 列车政策 列车政策
选择一个政策架构,在数据集中启动训练,解释训练日志,并保存一个准备部署的检查点5.
政策选择
您可以在训练之前选择一个,您不能在训练中切换.
建议使用此路径
法律
动作
传播政策
精度任务的高峰精度,但训练和推断速度是3
斯莫尔维拉
语言条件的VLA. 当您的任务需要自然语言指令或多任务通用化时使用.需要更多数据.
行动训练指挥部
取代
source ~/lerobot-env/bin/activate python -m lerobot.scripts.train \ --policy-type act \ --dataset-repo-id $HF_USER/pick-place-v1 \ --output-dir ~/lerobot-policy/pick-place-v1 \ --config-overrides \ training.num_steps=50000 \ training.event_freq=5000 \ training.save GPU_freq=5000 \ training.batch_size=32 \ policy.chunk_size=100 \ policy.n_action_steps=100 # Add --device cuda if you have a (strongly recommended) \ Checkpoint every 5k to sleep ~ steps/obot-pick-v1/#
GPU与CPU训练时间: 在RTX 3090 (24GB) 上,5万步程需要大约60
建议单臂接器的超参数
| Parameter | Recommended | Why |
|---|---|---|
| num_steps | 50000 | Sufficient for 50–100 demos of a simple pick-and-place. Increase to 80k if your loss plateau occurs late. |
| batch_size | 32 | Standard for single-arm datasets. Reduce to 16 if you run out of GPU memory. |
| chunk_size | 100 | ACT plans 100 steps ahead. At 30fps this is ~3.3 seconds — a good planning horizon for pick-and-place. |
| n_action_steps | 100 | Must match chunk_size. Reduces inference frequency and smooths execution. |
| kl_weight | 10 | LeRobot default. Do not change unless L_kl stays near zero after 20k steps. |
| lr | 1e-5 | LeRobot default for ACT. Lower to 5e-6 if reconstruction loss oscillates instead of converging. |
阅读训练日志
打印训练日志到终端和TensorBoard.
然后在浏览器中打开
损失/重建 (L_recon)
基本训练信号.应该从2.5
损失/kl (L_kl)
慢慢从近0到5
列车/损失 (总损失)
检查点管理
检查点每5,000步都保存到
训练后,确定您最好的检查点:这是L_重建在开始高原之前达到最低的步骤.对于50次示范,这通常发生在35,000
第四单元完成时...
训练完成了5万步骤,检查点在
[← 回到路径概述]







