HPT LeRobot Implementation Version
16
stars
715
commits
Python
primary language
Sep 27, 2024
updated
Lirui Wang, Xinlei Chen, Jialiang Zhao, Kaiming He
Neural Information Processing Systems (Spotlight), 2024
This is a Huggingface LeRobot implementation for pre-training Heterogenous Pre-trained Transformers (HPTs).
Create a virtual environment with Python 3.10 and activate it, e.g. with miniconda:
conda create -y -n lerobot python=3.10
conda activate lerobot
Install π€ LeRobot with simulation environments:
pip install -e ".[aloha, pusht]
Check the following two folders for most of the modifications.
βββ lerobot
| βββ configs # contains hydra yaml files with all options that you can override in the command line
| | βββ ... # various sim environments and their datasets: aloha.yaml, pusht.yaml, xarm.yaml
| | βββ policy # including policies config for hpt.yaml
| βββ common # contains classes and utilities
| | βββ ... # various datasets of human demonstrations: aloha, pusht, xarm
| | βββ ... # various sim environments: aloha, pusht, xarm
| | βββ policies # including modeling and configuration for hpt
| βββ ...
By default, the HPT model loads the x-large pre-trained trunk. Use these config parameters policy.embed_dim=256 policy.num_heads=8 policy.num_blocks=16 to switch to the hpt-base trunk for example.
Run the following scripts for aloha transfer cube experiments.
python lerobot/scripts/train.py \
policy=hpt_transformer env=aloha env.task=AlohaTransferCube-v0 \
dataset_repo_id=lerobot/aloha_sim_transfer_cube_human \
wandb.enable=true
python lerobot/scripts/train.py \
policy=hpt_pusht env=pusht env.task=PushT-v0 \
dataset_repo_id=lerobot/pusht \
wandb.enable=true
python lerobot/scripts/train.py policy=hpt_koch_real env=koch_real \
dataset_repo_id=lerobot/koch_pick_place_5_lego \
wandb.enable=true
If you find HPT useful in your research, please consider citing:
@inproceedings{wang2024hpt,
author = {Lirui Wang, Xinlei Chen, Jialiang Zhao, Kaiming He, Russ Tedrake},
title = {Scaling Proprioceptive-Visual Learning with Heterogeneous Pre-trained Transformers},
booktitle = {Neurips},
year = {2024}
}
Our implementation is built upon the excellent LeRobot codebase.
(top 30 of 34)
Python
97.2%
HTML
1.9%
HPT LeRobot Implementation Version
16
stars
715
commits
Python
primary language
Sep 27, 2024
updated
Lirui Wang, Xinlei Chen, Jialiang Zhao, Kaiming He
Neural Information Processing Systems (Spotlight), 2024
This is a Huggingface LeRobot implementation for pre-training Heterogenous Pre-trained Transformers (HPTs).
Create a virtual environment with Python 3.10 and activate it, e.g. with miniconda:
conda create -y -n lerobot python=3.10
conda activate lerobot
Install π€ LeRobot with simulation environments:
pip install -e ".[aloha, pusht]
Check the following two folders for most of the modifications.
βββ lerobot
| βββ configs # contains hydra yaml files with all options that you can override in the command line
| | βββ ... # various sim environments and their datasets: aloha.yaml, pusht.yaml, xarm.yaml
| | βββ policy # including policies config for hpt.yaml
| βββ common # contains classes and utilities
| | βββ ... # various datasets of human demonstrations: aloha, pusht, xarm
| | βββ ... # various sim environments: aloha, pusht, xarm
| | βββ policies # including modeling and configuration for hpt
| βββ ...
By default, the HPT model loads the x-large pre-trained trunk. Use these config parameters policy.embed_dim=256 policy.num_heads=8 policy.num_blocks=16 to switch to the hpt-base trunk for example.
Run the following scripts for aloha transfer cube experiments.
python lerobot/scripts/train.py \
policy=hpt_transformer env=aloha env.task=AlohaTransferCube-v0 \
dataset_repo_id=lerobot/aloha_sim_transfer_cube_human \
wandb.enable=true
python lerobot/scripts/train.py \
policy=hpt_pusht env=pusht env.task=PushT-v0 \
dataset_repo_id=lerobot/pusht \
wandb.enable=true
python lerobot/scripts/train.py policy=hpt_koch_real env=koch_real \
dataset_repo_id=lerobot/koch_pick_place_5_lego \
wandb.enable=true
If you find HPT useful in your research, please consider citing:
@inproceedings{wang2024hpt,
author = {Lirui Wang, Xinlei Chen, Jialiang Zhao, Kaiming He, Russ Tedrake},
title = {Scaling Proprioceptive-Visual Learning with Heterogeneous Pre-trained Transformers},
booktitle = {Neurips},
year = {2024}
}
Our implementation is built upon the excellent LeRobot codebase.
(top 30 of 34)
Python
97.2%
HTML
1.9%