Sanitize release metadata and RoboCasa environment

#3
by yilin-wu - opened
simulation/rmbench/molmoact2_eval_assets/manifest.json CHANGED
@@ -10,7 +10,6 @@
10
  "revision": "1cfa9a7208912126459214e8b04321603b3df60c"
11
  },
12
  "schema_version": 1,
13
- "source_run": "mit0jkx7",
14
  "stage2_metadata": [
15
  "stage2/meta/episodes.jsonl",
16
  "stage2/meta/memory_layout.json"
 
10
  "revision": "1cfa9a7208912126459214e8b04321603b3df60c"
11
  },
12
  "schema_version": 1,
 
13
  "stage2_metadata": [
14
  "stage2/meta/episodes.jsonl",
15
  "stage2/meta/memory_layout.json"
simulation/robocasa/600/README.md CHANGED
@@ -29,7 +29,8 @@ python scripts/reproduce/extract_dataset_store.py \
29
  ```
30
 
31
  See the manifests for per-shard SHA256 checksums. The exact patched simulator
32
- source is distributed separately as `yilin-wu/imprint-robocasa-environment`.
 
33
 
34
  The corresponding code, launch configurations, and validation tools are
35
  published in the IMPRINT GitHub repository.
 
29
  ```
30
 
31
  See the manifests for per-shard SHA256 checksums. The exact patched simulator
32
+ source is distributed in `Amazon-FAR/imprint_datasets`, path
33
+ `simulation/robocasa/environment`.
34
 
35
  The corresponding code, launch configurations, and validation tools are
36
  published in the IMPRINT GitHub repository.
simulation/robocasa/environment/README.md CHANGED
@@ -16,17 +16,18 @@ Included:
16
 
17
  - 18 migrated memory-task classes
18
  - legacy RoboCasa 0.2 scene-index compatibility
 
19
  - recorded XML/state replay fixes
20
  - task registration and terminal success logic
21
  - pinned Python and dependency manifests
22
- - environment tests and migration notes
23
 
24
  Archive:
25
 
26
  ```text
27
  robocasa-memory-setup.tar.gz
28
- SHA256 ea113f5e102a59d8c7b893dbc9f4dfe3e993cc5dd1a0ec5f4173d9012061bd91
29
  ```
30
 
31
- The large RoboCasa kitchen and legacy replay assets are not embedded. Follow
32
- `SETUP_AND_FIX_NOTES.md` after extraction.
 
 
16
 
17
  - 18 migrated memory-task classes
18
  - legacy RoboCasa 0.2 scene-index compatibility
19
+ - bundled legacy scene metadata required by the memory tasks
20
  - recorded XML/state replay fixes
21
  - task registration and terminal success logic
22
  - pinned Python and dependency manifests
 
23
 
24
  Archive:
25
 
26
  ```text
27
  robocasa-memory-setup.tar.gz
28
+ SHA256 12cb7a92087298e6e9f299070d294655e54f1340ef578ca5e0581c885a79d9fc
29
  ```
30
 
31
+ The large RoboCasa kitchen object and texture assets are not embedded. Use the
32
+ IMPRINT environment setup helper after extraction; it downloads those assets
33
+ from their public upstream sources.
simulation/robocasa/environment/SETUP_AND_FIX_NOTES.md DELETED
@@ -1,159 +0,0 @@
1
- # RoboCasa × ReMemBench Memory Tasks — Full Setup & Fix Notes
2
-
3
- This package is the complete, self-contained setup for the **migrated ReMemBench
4
- memory tasks running inside official RoboCasa 1.0.1 (robocasa-new / robocasa365)**,
5
- plus the datasets pipeline (replay → regenerate → LeRobot convert → merge with
6
- human300) and the Robo-Dopamine reward-annotation pipeline built on top.
7
-
8
- It captures **what the mixture between RoboCasa and ReMemBench was, why it broke, and
9
- exactly how it was fixed**, together with all the code and the reproducible
10
- environment manifest.
11
-
12
- ---
13
-
14
- ## 0. TL;DR — the environment
15
-
16
- Everything below was built and run in ONE uv-managed environment:
17
-
18
- - **`~/robocasa-new/.venv-mem`** — CPython **3.10.20**
19
- - **robocasa 1.0.1** (editable install = the code in this package)
20
- - **robosuite 1.5.2**, **mujoco 3.3.1** (CPU physics, EGL rendering)
21
- - torch 2.7.1, numpy 2.2.5, h5py 3.16.0, imageio 2.37.3, **lerobot 0.3.3**
22
- - Host GPU: NVIDIA RTX PRO 5000 (Blackwell, sm_120) — rendering uses `MUJOCO_GL=egl`.
23
-
24
- Exact pins: `requirements-venv-mem.freeze.txt` (full `pip freeze`) + `PYTHON_VERSION.txt`.
25
-
26
- Recreate:
27
- ```bash
28
- uv venv --python 3.10 .venv-mem
29
- uv pip install -r requirements-venv-mem.freeze.txt --python .venv-mem/bin/python
30
- uv pip install -e . --python .venv-mem/bin/python # this repo = robocasa 1.0.1
31
- ```
32
-
33
- The Robo-Dopamine reward VLM runs in a SEPARATE env (`~/robometer/.venv-robodopamine`,
34
- vLLM) — see §5 and the robometer package notes.
35
-
36
- ---
37
-
38
- ## 1. What the "mixture" was
39
-
40
- The memory tasks originated in **ReMemBench**, a fork of **robocasa 0.2.0** (used in the
41
- HALO project). The goal was to run those tasks in **official robocasa 1.0.1**
42
- (a.k.a. robocasa-new / robocasa365) so a single pi0.5/openpi policy can train and eval
43
- on memory + non-memory tasks in one ecosystem.
44
-
45
- Two distinct things had to be reconciled:
46
-
47
- 1. **Environment classes** — 18 `Mem*` task definitions written against the 0.2.0 API.
48
- 2. **Recorded demonstrations** — HDF5 demos recorded under 0.2.0 / robosuite 1.x, which
49
- must replay faithfully on the 1.0.1 envs.
50
-
51
- ---
52
-
53
- ## 2. How it was fixed — three layers
54
-
55
- Full detail is in the three notes docs shipped in this package under
56
- `docs/superpowers/`. Summary of each fix layer:
57
-
58
- ### Layer 1 — Env-class port (`MEMORY_TASKS_MIGRATION_NOTES.md`)
59
- - Ported 18 `Mem*` classes to `robocasa/environments/kitchen/memory/memory_env.py`.
60
- - Ported ReMemBench object groups + cooking-timing tables into
61
- `robocasa/models/objects/kitchen_objects.py`, plus 2 `object_utils.py` helpers.
62
- - Registered the tasks so 1.0.1's env registry can instantiate them.
63
-
64
- ### Layer 2 — Legacy-scene replay (`LEGACY_REPLAY_NOTES.md` — supersedes L1's "blocked" conclusion)
65
- Three sequential blockers between 0.2.0 demos and 1.0.1 envs:
66
- - **Scene index conflict:** 0.2.0 used 0-indexed named style/layout enums; 1.0.1
67
- renumbered to 1-indexed numeric (`STYLE001=1…`). Recorded `style_id=0` → `KeyError`.
68
- Fixed by remapping the migrated 0.2.0 scene indices to registered legacy entries
69
- (`scene_registry` + `ep_meta` remap on every `reset_to`).
70
- - **`ep_meta` object-config schema drift:** 0.2.0 keys (`obj_registries`,
71
- `obj_instance_split`, nested `object_scale`) rejected by the 1.0.1 cfg validator.
72
- Fixed by tolerating/normalizing legacy keys during replay.
73
- - **Fixture asset gap:** legacy 0.2.0 fixture assets missing in 1.0.1. Fixed by a
74
- reproducible fetch of the legacy assets (`scripts/replay/fetch_legacy_assets.py`).
75
- - **Render fix:** hide baked-in `success_region` / debug-visualization goal sites so
76
- they don't appear in rendered frames (`_hide_debug_sites`).
77
-
78
- ### Layer 3 — Dataset regeneration (`REGENERATED_DATASET_NOTES.md`)
79
- - **State-faithful replay:** restore each recorded MuJoCo state via `reset_to`,
80
- re-derive obs + render cameras, re-write in the original two-file ReMemBench format
81
- with migrated version stamps. Not a fresh re-collection — recorded actions preserved.
82
- - Persisted container-lift correction; all demos end `is_success=True`.
83
-
84
- ---
85
-
86
- ## 3. Re-render for the unified dataset (256×256, 3 cameras)
87
-
88
- After the mixture was resolved, the memory demos were re-rendered to match human300 so
89
- they could be merged into one LeRobot dataset. Design + plan:
90
- `docs/superpowers/specs/2026-07-06-unified-memory-human300-dataset-design.md`.
91
-
92
- - **Re-render:** `scripts/regen_dataset/` (`regenerate_all.py` → `regenerate_demo.py`
93
- → `write_hdf5.py`). Sets `CAMERAS = [robot0_agentview_left, robot0_agentview_right,
94
- robot0_eye_in_hand]` (center dropped) and `camera_heights=camera_widths=256`.
95
- EGL default, ~300 fps, resumable skip-if-exists.
96
- ```bash
97
- MUJOCO_GL=egl .venv-mem/bin/python -m scripts.regen_dataset.regenerate_all \
98
- --out-dir regenerated_dataset_256 # 256px / 3-cam
99
- ```
100
- - **Memory → LeRobot v2.1:** `scripts/merge_dataset/convert_memory_to_lerobot.py` —
101
- real 3-cam mapping (`agentview_left`→left, `agentview_right`→right, `eye_in_hand`→
102
- wrist), **vertical-flip** (memory obs are bottom-up), h264 video to match human300,
103
- `state[16]`/`action[12]`, `PandaOmron_modality.json`. Output: `memory_lerobot/<task>/lerobot`.
104
- - **human300 download:** `scripts/merge_dataset/download_human300.sh`.
105
- - **Physical merge:** `scripts/merge_dataset/merge_lerobot_datasets.py` — concatenates
106
- 313 task dirs (13 memory + 300 human300), contiguous re-index of
107
- `episode_index`/`index`/`task_index` (+ `annotation.human.*`), dedup tasks.jsonl,
108
- frame-weighted stats aggregation.
109
-
110
- **Camera facts (verified, model consumes 3 cams):** `base_0_rgb`←agentview_left,
111
- `right_wrist_0_rgb`←agentview_right, `left_wrist_0_rgb`←eye_in_hand. Stored 256×256;
112
- model resizes to 224×224 at load. agentview_center is NOT used.
113
-
114
- The public IMPRINT training store is under
115
- `simulation/robocasa/600` in `Amazon-FAR/imprint_datasets`. This customized
116
- environment package is under `simulation/robocasa/environment` in the same
117
- repository.
118
-
119
- ---
120
-
121
- ## 4. Package layout
122
-
123
- ```
124
- SETUP_AND_FIX_NOTES.md # this file
125
- PYTHON_VERSION.txt # 3.10.20
126
- requirements-venv-mem.freeze.txt # full pip freeze of .venv-mem
127
- robocasa/ # robocasa 1.0.1 source + memory/ env package
128
- environments/kitchen/memory/ # THE 18 Mem* task classes (memory_env.py)
129
- models/objects/kitchen_objects.py # ported object groups + cooking timings
130
- scripts/
131
- regen_dataset/ # re-render (replay -> hdf5)
132
- merge_dataset/ # convert to LeRobot + download human300 + merge
133
- replay/ # legacy replay, key-moment detection, wash split
134
- tests/memory/, tests/merge/ # registration/smoke/replay/convert verification
135
- docs/superpowers/
136
- MEMORY_TASKS_MIGRATION_NOTES.md # Layer 1
137
- LEGACY_REPLAY_NOTES.md # Layer 2
138
- REGENERATED_DATASET_NOTES.md # Layer 3
139
- specs/ plans/ # design + implementation plans (dated)
140
- ```
141
-
142
- ---
143
-
144
- ## 5. Reward annotations (Robo-Dopamine, separate env)
145
-
146
- The 4-segment wash-and-return reward pipeline lives in the separate
147
- `robometer` project and is not included in this environment archive. The
148
- training store published with IMPRINT already contains the reward annotations
149
- used by the released configuration.
150
-
151
- ---
152
-
153
- ## 6. Git provenance
154
-
155
- The portable evaluator, setup script, and environment manifest are maintained
156
- in `Amazon-FAR/imprint`. The archived commit history traces the exact fix
157
- order: object groups → env port → legacy scene remap → ep_meta tolerance →
158
- asset fetch → debug-site hiding → replay → regenerate → 256/3-cam
159
- parameterization → LeRobot conversion → human300 merge.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
simulation/robocasa/environment/robocasa-memory-setup.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab65ddb296584f81261c1d95a154e00ae73b3d874c8d1306b9c029a38b734eb5
3
- size 41732524
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12cb7a92087298e6e9f299070d294655e54f1340ef578ca5e0581c885a79d9fc
3
+ size 2181680