Retour au classement

MarkFzp/act-plus-plus

Pythonmobile-aloha.github.io

Imitation learning algorithms with Co-training for Mobile ALOHA: ACT, Diffusion Policy, VINN

imitation-learningrobotics
Croissance des étoiles
Étoiles
3.6k
Forks
647
Croissance hebdomadaire
Issues
47
2.5k3k3.5k
janv. 2024nov. 2024sept. 2025juil. 2026
ArtefactsPyPIpip install act-plus-plus
README

Imitation Learning algorithms and Co-training for Mobile ALOHA

Project Website: https://mobile-aloha.github.io/

This repo contains the implementation of ACT, Diffusion Policy and VINN, together with 2 simulated environments: Transfer Cube and Bimanual Insertion. You can train and evaluate them in sim or real. For real, you would also need to install Mobile ALOHA. This repo is forked from the ACT repo.

Updates:

You can find all scripted/human demo for simulated environments here.

Repo Structure

  • imitate_episodes.py Train and Evaluate ACT
  • policy.py An adaptor for ACT policy
  • detr Model definitions of ACT, modified from DETR
  • sim_env.py Mujoco + DM_Control environments with joint space control
  • ee_sim_env.py Mujoco + DM_Control environments with EE space control
  • scripted_policy.py Scripted policies for sim environments
  • constants.py Constants shared across files
  • utils.py Utils such as data loading and helper functions
  • visualize_episodes.py Save videos from a .hdf5 dataset

Installation

conda create -n aloha python=3.8.10
conda activate aloha
pip install torchvision
pip install torch
pip install pyquaternion
pip install pyyaml
pip install rospkg
pip install pexpect
pip install mujoco==2.3.7
pip install dm_control==1.0.14
pip install opencv-python
pip install matplotlib
pip install einops
pip install packaging
pip install h5py
pip install ipython
cd act/detr && pip install -e .

Example Usages

To set up a new terminal, run:

conda activate aloha
cd <path to act repo>

Simulated experiments (LEGACY table-top ALOHA environments)

We use sim_transfer_cube_scripted task in the examples below. Another option is sim_insertion_scripted. To generated 50 episodes of scripted data, run:

python3 record_sim_episodes.py --task_name sim_transfer_cube_scripted --dataset_dir <data save dir> --num_episodes 50

To can add the flag --onscreen_render to see real-time rendering. To visualize the simulated episodes after it is collected, run

python3 visualize_episodes.py --dataset_dir <data save dir> --episode_idx 0

Note: to visualize data from the mobile-aloha hardware, use the visualize_episodes.py from https://github.com/MarkFzp/mobile-aloha

To train ACT:

# Transfer Cube task
python3 imitate_episodes.py --task_name sim_transfer_cube_scripted --ckpt_dir <ckpt dir> --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

To evaluate the policy, run the same command but add --eval. This loads the best validation checkpoint. The success rate should be around 90% for transfer cube, and around 50% for insertion. To enable temporal ensembling, add flag --temporal_agg. Videos will be saved to <ckpt_dir> for each rollout. You can also add --onscreen_render to see real-time rendering during evaluation.

For real-world data where things can be harder to model, train for at least 5000 epochs or 3-4 times the length after the loss has plateaued. Please refer to tuning tips for more info.

ACT tuning tips

TL;DR: if your ACT policy is jerky or pauses in the middle of an episode, just train for longer! Success rate and smoothness can improve way after loss plateaus.

Dépôts similaires
datawhalechina/easy-rl

强化学习中文教程(蘑菇书🍄),在线阅读地址:https://datawhalechina.github.io/easy-rl/

Jupyter NotebookOtherdeep-reinforcement-learningreinforcement-learning
14.5k2.3k
carla-simulator/carla

Open-source simulator for autonomous driving research.

C++MIT Licensesimulatorautonomous-vehicles
carla.org
14.2k4.6k
thu-ml/tianshou

An elegant PyTorch deep reinforcement learning library.

PythonPyPIMIT Licensepytorchpolicy-gradient
tianshou.org
10.9k1.3k
MarkFzp/mobile-aloha

Mobile ALOHA: Learning Bimanual Mobile Manipulation with Low-Cost Whole-Body Teleoperation

Jupyter NotebookMIT Licenseimitation-learningrobotics
mobile-aloha.github.io
4.5k733
opendilab/DI-engine

OpenDILab Decision AI Engine. The Most Comprehensive Reinforcement Learning Framework B.P.

PythonPyPIApache License 2.0reinforcement-learningmultiagent-reinforcement-learning
di-engine-docs.readthedocs.io
3.6k437
enactic/openarm

A fully open-source humanoid arm for physical AI research and deployment in contact-rich environments.

MDXApache License 2.0bilateral-teleoperationgenesis
openarm.dev
2.7k305
IntelLabs/coach

Reinforcement Learning Coach by Intel AI Lab enables easy experimentation with state of the art Reinforcement Learning algorithms

PythonPyPIApache License 2.0coachopenai-gym
intellabs.github.io/coach/
2.3k462
Lifelong-Robot-Learning/LIBERO

Benchmarking Knowledge Transfer in Lifelong Robot Learning

Jupyter NotebookMIT Licensebenchmarkimitation-learning
2.1k443
RoboVerseOrg/RoboVerse

RoboVerse: Towards a Unified Platform, Dataset and Benchmark for Scalable and Generalizable Robot Learning

PythonPyPIApache License 2.0imitation-learningreinforcement-learning
roboverse.wiki
1.8k158
HumanCompatibleAI/imitation

Clean PyTorch implementations of imitation and reward learning algorithms

PythonPyPIMIT Licensereward-learninginverse-reinforcement-learning
imitation.readthedocs.io
1.8k303
autonomousvision/transfuser

[PAMI'23] TransFuser: Imitation with Transformer-Based Sensor Fusion for Autonomous Driving; [CVPR'21] Multi-Modal Fusion Transformer for End-to-End Autonomous Driving

PythonPyPIMIT Licenseimitation-learningautonomous-driving
1.6k241
BaiShuanghao/Awesome-Robotics-Manipulation

A comprehensive list of papers about Robot Manipulation, including papers, codes, and related websites.

MIT Licenserobot-manipulationdiffusion-policy
arxiv.org/abs/2510.10903
1.1k56