Software
ACT + ALOHA
From github.com/tonyzhaozh/act (opens in a new tab)
- Humanoids and robot learning
- Framework
- Runs on hardware you can build
- MIT
ACT is an imitation-learning policy that predicts action chunks with transformers, with simulated tasks for training and evaluating it in sim or on real robots.
- Stale. No commit in 12 months: the newest is from 28 Jan 2024.
Facts
- GitHub stars
- 2,356read on 27 Nov 2026
- Last update
- 28 Jan 2024Newest commit on main
- Maintenance
- Staleno commit in 12 months
- Difficulty
- Intermediate
Checked on GitHub on 27 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 742c753 (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Implements the ACT policy, adapted from DETR, for learning robot behaviour from demonstrations.
- Includes two simulated environments, Transfer Cube and Bimanual Insertion, with joint-space and end-effector control.
- Provides scripts to record scripted demonstration episodes, train ACT, and evaluate the trained policy.
- Supports temporal ensembling during evaluation to smooth actions.
- Can be used on real hardware when combined with the separate ALOHA project.
- Includes a script to save videos of episodes from an HDF5 dataset.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Stale, last commit on 28 Jan 2024.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/tonyzhaozh/act (opens in a new tab)
- The version Robotheca read742c753 (opens in a new tab)
- Latest releaseNone published on GitHub
- ALOHA, the bimanual teleoperation system ACT was made forgithub.com/tonyzhaozh/aloha (opens in a new tab)
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @tonyzhaozh, at commit 742c753, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
ACT: Action Chunking with Transformers
New: ACT tuning tips (opens in a new tab)
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.
Project Website: https://tonyzhaozh.github.io/aloha/ (opens in a new tab)
This repo contains the implementation of ACT, together with 2 simulated environments: Transfer Cube and Bimanual Insertion. You can train and evaluate ACT in sim or real. For real, you would also need to install ALOHA (opens in a new tab).
Updates:
You can find all scripted/human demo for simulated environments here (opens in a new tab).
Repo Structure
imitate_episodes.pyTrain and Evaluate ACTpolicy.pyAn adaptor for ACT policydetrModel definitions of ACT, modified from DETRsim_env.pyMujoco + DM_Control environments with joint space controlee_sim_env.pyMujoco + DM_Control environments with EE space controlscripted_policy.pyScripted policies for sim environmentsconstants.pyConstants shared across filesutils.pyUtils such as data loading and helper functionsvisualize_episodes.pySave 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
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 episode after it is collected, run
python3 visualize_episodes.py --dataset_dir <data save dir> --episode_idx 0
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 (opens in a new tab) for more info.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.