ALOHA机器人 ACT算法复现

ALOHA机器人 ACT算法复现(在4自由度小玩具上的复现)


原论文标题 A Low-cost Open-source Hardware System for Bimanual Teleoperation, 作者单位:斯坦福大学。实现了一种端到端的模仿学习算法。

安装配置

下载

首先下载项目

git clone https://github.com/agilexrobotics/act-plus-plus.git

配置环境

配置环境,原工程没有撰写虚拟环境配置,以下给出

torch==1.11.0+cu113
torchvision==0.12.0+cu113 
torchaudio==0.11.0
pyquaternion
pyyaml
rospkg
pexpect
mujoco==2.3.7
dm_control==1.0.14
opencv-python
matplotlib
einops
packaging
h5py
ipython
diffusers
wandb

安装软件需求

cd detr && pip install -v -e .

修改数据存储路径,在constant.py文件中:

DATA_DIR = './data'

错误处理


  • 报错1
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
  • 解决方案:
export CUDA_LAUNCH_BLOCKING=1
# 或者
pip uninstall nvidia-cublas-*

  • 报错2
Segmentation fault (core dumped)
  • 解决方案:
    检查pytorch版本。或者直接运行
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
  • 报错3
NotImplementedError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat.  This usually means that this function requires a non-empty list of Tensors, or that you (the operator writer) forgot to register a fallback function.  Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Python, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradLazy, AutogradXPU, AutogradMLC, AutogradHPU, AutogradNestedTensor, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, AutocastCPU, Autocast, Batched, VmapMode, Functionalize].

检查数据的路径是否和constant.py保持一致。检查task name参数指定的数据是否存在。

训练

python3 imitate_episodes.py --task_name sim_transfer_cube_scripted --ckpt_dir trainings --policy_class ACT --kl_weight 1 --chunk_size 10 --hidden_dim 512 --batch_size 1 --dim_feedforward 3200  --lr 1e-5 --seed 0 --num_steps 2000

修改

未完待续。。。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值