SeGo-pi / README.md
RainyBot's picture
Document task directories and checkpoint download usage
7c0faf6 verified
|
Raw History Blame Contribute Delete
2.67 kB
---
license: other
license_name: apache-2.0-and-gemma-terms
license_link: https://huggingface.co/RainyBot/SeGo-pi/blob/main/LICENSE_GEMMA.txt
tags:
- robotics
- openpi
- pi0
- pytorch
---
# SeGo-pi
Collection of Xtrainer2 real-robot PI0 policies fine-tuned from the official PI0 base
PyTorch weights. Each task and epoch directory is a self-contained inference package,
including model weights, its matching normalization statistics, tokenizer and interface
configuration. No closed-loop robot evaluation result is claimed.
```text
SeGo-pi/
β”œβ”€β”€ phone/
β”‚ β”œβ”€β”€ epoch-24/
β”‚ β”œβ”€β”€ epoch-30/
β”‚ β”œβ”€β”€ epoch-35/
β”‚ β”œβ”€β”€ epoch-40/
β”‚ └── epoch-60/
└── transfer_dropper/
β”œβ”€β”€ epoch-30/
└── epoch-60/
```
Available checkpoints and recommended versions are listed in `tasks.json`.
Phone and Transfer Dropper both include their completed 60-epoch checkpoints.
Phone and Transfer Dropper used the historical 320-resolution
image exports, separate from the newer native-resolution experiments.
## Download a task checkpoint
```python
from pathlib import Path
from huggingface_hub import snapshot_download
subdir = "transfer_dropper/epoch-60" # or "phone/epoch-30"
root = snapshot_download("RainyBot/SeGo-pi", allow_patterns=[f"{subdir}/**"])
checkpoint_dir = str(Path(root) / subdir)
```
With the compatible PyTorch implementation in `RainyRobo/openpi`:
```bash
source activate.sh
python scripts/serve_policy.py policy:checkpoint \
--policy.config pi0_xtrainer2_transfer_dropper_eef \
--policy.dir /path/to/SeGo-pi/transfer_dropper/epoch-60
```
For Phone use `pi0_xtrainer2_phone_eef` and the chosen `phone/epoch-*` directory.
Always use the normalization statistics packaged with the selected task.
State/action use absolute end-effector xyz, quaternion xyzw, and gripper,
left arm followed by right arm, 16 dimensions total. Model dimensions are padded
to 32 with a 32-step action horizon; preserve the dataset coordinate and gripper conventions.
See each checkpoint's `inference_config.json`. Public bundles contain inference files;
complete optimizer and RNG states remain in local training checkpoints.
The tokenizer is packaged for reproducibility; offline inference also requires placing
it in the cache used by the compatible OpenPI implementation. Per-checkpoint model cards
copied from the original archives may refer to the original standalone repositories;
use the directory layout and download instructions on this page for this collection.
OpenPI code is Apache-2.0. Gemma-derived components are subject to the included
Gemma Terms of Use. See `LICENSE` and `LICENSE_GEMMA.txt`.