A fork of OpenPI (from Physical Intelligence) adapted for the KinDER benchmark.
kinder-openpi extends upstream OpenPI with the following capabilities:
training/mh_sharding.py)dataset.skip(n)dataloader/dataset_mixer.py)Clone the repository with all submodules:
git clone --recurse-submodules git@github.com:lihzha/kinder-openpi.git
If you already cloned without submodules:
git submodule update --init --recursive
We use uv to manage Python dependencies.
Install uv following the official instructions.
Sync the environment:
GIT_LFS_SKIP_SMUDGE=1 uv sync
GIT_LFS_SKIP_SMUDGE=1 uv pip install -e .
After obtaining the HDF5 trajectory file from replaying, set the path to the raw file:
export HDF5_FILE_PATH=<path_to_hdf5>
Build the TFDS dataset. First, follow the README in third_party/rlds_dataset_builder to set up the environment. Then run:
cd third_party/rlds_dataset_builder/<dataset_type>
conda activate rlds
tfds build --overwrite
where <dataset_type> is:
planning_threedim_dataset for 3D tasksplanning_twodim_dataset for 2D tasksAfter building the TFDS dataset, place it under data/planning_dataset. Then launch training:
uv run scripts/train.py pi05_kinder_finetune --exp-name=kinder --fsdp-devices=8
Adjust --exp-name and --fsdp-devices as needed. Additional hyperparameters can be set via command line or in src/kinder_openpi/training/config.py. Training metrics are logged to W&B and checkpoints are saved to ./checkpoints by default.
uv run scripts/serve_policy.py policy:checkpoint \
--policy.config=pi05_kinder_finetune \
--policy.dir=checkpoints/<exp_name>/<epoch>
Install the required packages:
pip install openpi_client tyro
Then run:
# 3D environments
python scripts/eval.py --use_overview_image --open-loop-horizon=8
# 2D environments
python scripts/eval.py --no-use_overview_image
Start the corresponding robot or simulation environment. See the KinDER Imitation Learning Baselines for details.
3 commits
3 commits
Python
100.0%
A fork of OpenPI (from Physical Intelligence) adapted for the KinDER benchmark.
kinder-openpi extends upstream OpenPI with the following capabilities:
training/mh_sharding.py)dataset.skip(n)dataloader/dataset_mixer.py)Clone the repository with all submodules:
git clone --recurse-submodules git@github.com:lihzha/kinder-openpi.git
If you already cloned without submodules:
git submodule update --init --recursive
We use uv to manage Python dependencies.
Install uv following the official instructions.
Sync the environment:
GIT_LFS_SKIP_SMUDGE=1 uv sync
GIT_LFS_SKIP_SMUDGE=1 uv pip install -e .
After obtaining the HDF5 trajectory file from replaying, set the path to the raw file:
export HDF5_FILE_PATH=<path_to_hdf5>
Build the TFDS dataset. First, follow the README in third_party/rlds_dataset_builder to set up the environment. Then run:
cd third_party/rlds_dataset_builder/<dataset_type>
conda activate rlds
tfds build --overwrite
where <dataset_type> is:
planning_threedim_dataset for 3D tasksplanning_twodim_dataset for 2D tasksAfter building the TFDS dataset, place it under data/planning_dataset. Then launch training:
uv run scripts/train.py pi05_kinder_finetune --exp-name=kinder --fsdp-devices=8
Adjust --exp-name and --fsdp-devices as needed. Additional hyperparameters can be set via command line or in src/kinder_openpi/training/config.py. Training metrics are logged to W&B and checkpoints are saved to ./checkpoints by default.
uv run scripts/serve_policy.py policy:checkpoint \
--policy.config=pi05_kinder_finetune \
--policy.dir=checkpoints/<exp_name>/<epoch>
Install the required packages:
pip install openpi_client tyro
Then run:
# 3D environments
python scripts/eval.py --use_overview_image --open-loop-horizon=8
# 2D environments
python scripts/eval.py --no-use_overview_image
Start the corresponding robot or simulation environment. See the KinDER Imitation Learning Baselines for details.
3 commits
3 commits
Python
100.0%