File size: 2,669 Bytes
828d586
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c0faf6
 
828d586
 
 
 
 
 
7c0faf6
 
828d586
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
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`.