turtlebot3-burger_150.png
turtlebot3-waffle-pi_150.png
turtlebot3-arm_150.png
walking-y2_150.png
turbot3-multi_150.png
turbot3-dl-ros1_150.png
turbot3-ai.png
turbot3-dl-ros2_150.png
turbot3-slam_150.png
turbot3-arm_150.png
turtlebot4-lite_150.png
turtlebot4-pro_150.png
turbot4-dl_150.png
turbot4-ai_150.png
aidriving-racebot_150.png
aidriving-autodrive_150.png
turtlebot-arm_150.png
openmanipulator-x_150.png
Home » ALOHA机械臂入门教程 » ALOHA机械臂入门教程-训练数据集

ALOHA机械臂入门教程-训练数据集

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号

文章说明

  • 本教程主要介绍如何训练采集到的数据集

操作步骤

  • 启动训练脚本
$ cd ~/ros1_aloha_ws/src/act
$ conda activate aloha
$ python3 imitate_episodes.py \
--task_name test \
--ckpt_dir training_test \
--policy_class ACT --kl_weight 10 --chunk_size 100 --hidden_dim 512 --batch_size 8 --dim_feedforward 3200 \
--num_epochs 2000  --lr 1e-5 \
--seed 0
  • 简单参数说明
- task_name:任务名称
- ckpt_dir:检查点文件的保存目录
- policy_class:策略类别,首字母大写
- batch_size:批处理大小
- dim_feedforward:前馈神经网络中隐藏层的维度
- num_epochs:总的训练周期数
- seed:用于随机种子的值
- lr:学习率
  • 训练数据需要用到GPU和CUDA,请确保电脑装有带有GPU的显卡和安装好相应的驱动和CUDA程序

FAQ

Q1
  • 训练时报错CUDA out of memory
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 46.00 MiB. GPU
A1
  • 显卡性能太弱,建议在有更高性能显卡的平台上训练或者调整参数
Q2
  • 训练时报错Cannot allocate memory
OSError: [Errno 12] Cannot allocate memory
A2
  • 电脑运行内存不足,建议增加当前电脑的运行内存或者调整参数

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号


标签: none