Document complete native SAGE bundles and LIBERO quick start
Browse files
README.md
CHANGED
|
@@ -30,13 +30,25 @@ SAGE combines latent subgoal generation and goal-conditioned action proposals wi
|
|
| 30 |
| PushT | `pusht_generator.pt` | `pusht_action_prior.pt` | `pusht_far_action_prior.pt` |
|
| 31 |
| OGBench Cube | `cube_generator.pt` | `cube_action_prior.pt` | `cube_far_action_prior.pt` |
|
| 32 |
|
| 33 |
-
| Environment |
|
| 34 |
|:---|:---|
|
| 35 |
-
| LIBERO Scene2 | `libero_scene2/
|
| 36 |
-
| LIBERO Caddy | `libero_caddy/
|
| 37 |
-
| RoboTwin A2B | `robotwin_a2b/
|
| 38 |
|
| 39 |
-
Each
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Usage
|
| 42 |
|
|
@@ -50,6 +62,56 @@ snapshot_download(repo_id="CLTRAY/SAGE", local_dir="checkpoints")
|
|
| 50 |
|
| 51 |
See the [code repository](https://github.com/PKU-ML/SAGE) for installation and evaluation commands, and [native benchmark instructions](https://github.com/PKU-ML/SAGE/blob/main/NATIVE.md) for LIBERO and RoboTwin.
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
## Citation
|
| 54 |
|
| 55 |
```bibtex
|
|
|
|
| 30 |
| PushT | `pusht_generator.pt` | `pusht_action_prior.pt` | `pusht_far_action_prior.pt` |
|
| 31 |
| OGBench Cube | `cube_generator.pt` | `cube_action_prior.pt` | `cube_far_action_prior.pt` |
|
| 32 |
|
| 33 |
+
| Environment | Complete SAGE bundle |
|
| 34 |
|:---|:---|
|
| 35 |
+
| LIBERO Scene2 | `libero_scene2/` |
|
| 36 |
+
| LIBERO Caddy | `libero_caddy/` |
|
| 37 |
+
| RoboTwin A2B | `robotwin_a2b/` |
|
| 38 |
|
| 39 |
+
Each native bundle contains three matching components:
|
| 40 |
+
|
| 41 |
+
```text
|
| 42 |
+
<suite>/
|
| 43 |
+
world_model/config.json
|
| 44 |
+
world_model/weights.pt
|
| 45 |
+
generator.pt
|
| 46 |
+
prior.pt
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
`world_model/weights.pt` contains the LeWM encoder and dynamics; `generator.pt`
|
| 50 |
+
and `prior.pt` contain the subgoal generator and GMM action prior separately.
|
| 51 |
+
Keep all components from the same suite together.
|
| 52 |
|
| 53 |
## Usage
|
| 54 |
|
|
|
|
| 62 |
|
| 63 |
See the [code repository](https://github.com/PKU-ML/SAGE) for installation and evaluation commands, and [native benchmark instructions](https://github.com/PKU-ML/SAGE/blob/main/NATIVE.md) for LIBERO and RoboTwin.
|
| 64 |
|
| 65 |
+
### LIBERO Quick Start
|
| 66 |
+
|
| 67 |
+
Clone the code and install its pinned LIBERO environment on Linux:
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
git clone https://github.com/PKU-ML/SAGE.git
|
| 71 |
+
cd SAGE
|
| 72 |
+
conda env create -f runtime/libero/environment.yml
|
| 73 |
+
conda activate sage-libero
|
| 74 |
+
pip install --no-deps -e .
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
Download a complete Scene2 bundle and its evaluation data:
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
from huggingface_hub import snapshot_download
|
| 81 |
+
|
| 82 |
+
snapshot_download("CLTRAY/SAGE", allow_patterns=["libero_scene2/*"],
|
| 83 |
+
local_dir="checkpoints")
|
| 84 |
+
snapshot_download("CLTRAY/SAGE-data", repo_type="dataset",
|
| 85 |
+
allow_patterns=["evaluation/libero_scene2_evaluation.tar"],
|
| 86 |
+
local_dir="sage-data")
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
Verify the component loading and install the evaluation archive:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
python -m sage.assets --suite libero_scene2 --out-dir checkpoints --verify-only
|
| 93 |
+
python -m sage.native_models checkpoints/libero_scene2
|
| 94 |
+
python scripts/install_native_dataset.py --suite libero_scene2 --split evaluation \
|
| 95 |
+
--archive sage-data/evaluation/libero_scene2_evaluation.tar \
|
| 96 |
+
--out datasets/libero_scene2
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
Install the LIBERO checkout and simulator assets specified in the
|
| 100 |
+
[native benchmark guide](https://github.com/PKU-ML/SAGE/blob/main/NATIVE.md),
|
| 101 |
+
then set `LIBERO_ROOT` to that checkout. Run the released full-episode queries:
|
| 102 |
+
|
| 103 |
+
```bash
|
| 104 |
+
python -m sage.reproduce_native --suite libero_scene2 --methods sage \
|
| 105 |
+
--libero-root "$LIBERO_ROOT" --data-root datasets/libero_scene2 \
|
| 106 |
+
--checkpoints checkpoints --full-episode --out results/libero_scene2_full
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
Replace `libero_scene2` with `libero_caddy` for Caddy. Query manifests and
|
| 110 |
+
evaluation settings are included in the code repository. Model-loading checks
|
| 111 |
+
do not run the simulator; online evaluation also requires the matching runtime
|
| 112 |
+
and assets. For training and validation archives, see the
|
| 113 |
+
[dataset download instructions](https://huggingface.co/datasets/CLTRAY/SAGE-data).
|
| 114 |
+
|
| 115 |
## Citation
|
| 116 |
|
| 117 |
```bibtex
|