marcozzxx810 commited on
Commit
3c38340
·
verified ·
1 Parent(s): 642a2bf

Clarify subset scope, raw timing, and release validation

Browse files

Add pinned download instructions and a tested raw HDF5 inspector. Distinguish independently checked evidence from producer verification still needed. No episode payloads changed.

Files changed (3) hide show
  1. README.md +44 -5
  2. VALIDATION.md +27 -0
  3. examples/inspect_episode.py +68 -0
README.md CHANGED
@@ -16,6 +16,8 @@ tags:
16
 
17
  Version 2.0.0 replaces the earlier release with 600 selected simulation demonstrations: 12 paper configurations (A–F × 2/3 layers), with 50 episodes each. The old Task3 episodes are not included. Earlier versions remain available in repository history.
18
 
 
 
19
  Each episode is an independent raw HDF5 file at 30 FPS, with robot states and commands, end-effector poses, four JPEG camera streams, and simulation state. Camera images and all dataset values are preserved from the selected source files. Internal filesystem paths in metadata are redacted; source and published file hashes are recorded separately.
20
 
21
  ## Task identities and dataset size
@@ -60,6 +62,8 @@ The 600 episodes were selected deterministically from the 728 source episodes ac
60
 
61
  Checks include source-file SHA256 against the training provenance, HDF5 dataset structure, synchronized camera frame counts, monotonic row timestamps, finite joint/end-effector values, and decoding the start/middle/end frame of each of four cameras (7,200 sampled images). Sampled image checks are not full-video review or an independent semantic success reassessment. Recorded source success labels are retained.
62
 
 
 
63
  ## Format and compatibility
64
 
65
  `MANIFEST.jsonl` lists every published file with its SHA256, original-source SHA256, bytes, frames, and schema variant. `CHECKSUMS.sha256` validates published files. `schema/tower_simdata_hdf5.json` records the actual dataset inventory by task.
@@ -70,6 +74,16 @@ Core fields include `observations/qpos[T,16]`, `leader/qpos[T,16]`, `observation
70
 
71
  Stored JPEGs are ready to decode without an additional rotation or flip. The four cameras are right_front_camera, left_back_camera, left_wrist_camera, and back_wrist_camera.
72
 
 
 
 
 
 
 
 
 
 
 
73
  ## Camera previews
74
 
75
  Each preview uses the same representative episode reviewed before publication. Columns are start, middle, and end; each column is a 2×2 four-camera view. Image titles include the paper task, historical ID, original episode name, frame indices, and times.
@@ -146,19 +160,44 @@ Historical ID: `task7-3`.
146
 
147
  ![F-3 — Tool-Assisted Extraction](previews/taskF-3_tool_assisted_extraction_3_start_middle_end.jpg)
148
 
149
- ## Reading and verification
 
 
150
 
151
  ```python
152
- import h5py
153
- with h5py.File("episode.hdf5", "r") as f:
154
- print(f["observations/qpos"].shape)
155
- print(list(f["observations/images"]))
 
 
 
 
 
 
 
 
 
156
  ```
157
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  ```bash
159
  sha256sum --check CHECKSUMS.sha256
160
  ```
161
 
 
 
162
  ## License and citation
163
 
164
  The dataset is distributed under CC BY 4.0. See `LICENSE` and `CITATION.cff`.
 
16
 
17
  Version 2.0.0 replaces the earlier release with 600 selected simulation demonstrations: 12 paper configurations (A–F × 2/3 layers), with 50 episodes each. The old Task3 episodes are not included. Earlier versions remain available in repository history.
18
 
19
+ This is a **600-episode simulation-only subset**, not the complete 12,000-demonstration SIM/REAL collection described in the paper. Real-world demonstrations are not included in this repository.
20
+
21
  Each episode is an independent raw HDF5 file at 30 FPS, with robot states and commands, end-effector poses, four JPEG camera streams, and simulation state. Camera images and all dataset values are preserved from the selected source files. Internal filesystem paths in metadata are redacted; source and published file hashes are recorded separately.
22
 
23
  ## Task identities and dataset size
 
62
 
63
  Checks include source-file SHA256 against the training provenance, HDF5 dataset structure, synchronized camera frame counts, monotonic row timestamps, finite joint/end-effector values, and decoding the start/middle/end frame of each of four cameras (7,200 sampled images). Sampled image checks are not full-video review or an independent semantic success reassessment. Recorded source success labels are retained.
64
 
65
+ The selection statements above describe the release preparer's provenance. The source-pool manifest, deterministic selection procedure, held-out identity list, and per-episode qualification receipts are not included here yet, so those claims are not independently reproducible from this repository alone. See [VALIDATION.md](VALIDATION.md) for the checks independently performed and the remaining release-review items.
66
+
67
  ## Format and compatibility
68
 
69
  `MANIFEST.jsonl` lists every published file with its SHA256, original-source SHA256, bytes, frames, and schema variant. `CHECKSUMS.sha256` validates published files. `schema/tower_simdata_hdf5.json` records the actual dataset inventory by task.
 
74
 
75
  Stored JPEGs are ready to decode without an additional rotation or flip. The four cameras are right_front_camera, left_back_camera, left_wrist_camera, and back_wrist_camera.
76
 
77
+ ### Timing, units, and action targets
78
+
79
+ `leader/qpos` and `lifter/action_mm` are raw command/reference fields; `observations/qpos` is recorded state. A shared row index does **not** mean the command was already applied when that image was captured. `physical/issued_command/*` and `physical/applied_command/*` expose different stages of the command pipeline and must not be substituted for one another or for `leader/qpos` without a verified conversion. In the independently inspected C-2 episode, these fields are numerically different; its issued/applied ticks differ by 32 at the end, with a 400 Hz physics grid and an `extra_command_delay_ms` value of 80. This is a sample observation, not a universal shift to apply to every episode.
80
+
81
+ The sample HDF5 attributes identify joint angles in radians, gripper widths in meters, end-effector positions in meters, quaternion order `xyzw`, and lifter commands in millimeters. Arm order is left then back. Read each field's attributes and do not normalize mixed units together. Image samples inspected in A-2 and C-2 are 320×240; the inspection example reports the actual dimensions in any selected episode.
82
+
83
+ The per-task inventory does not list the previous v8 `sim/action_valid`, `sim/terminal`, or `sim/success` arrays. The inspected files instead contain an episode-level `task_success` attribute. Do not fabricate per-row success/terminal labels or infer that the final command row is invalid.
84
+
85
+ **Training alignment remains a release-review item:** the producer must supply the exact observation-to-target pairing, reference-to-issued-command mapping, delay treatment, and final-row handling used by the training pipeline. Until that is verified, the example below is a raw-data inspection loader, not an endorsed imitation-learning target constructor.
86
+
87
  ## Camera previews
88
 
89
  Each preview uses the same representative episode reviewed before publication. Columns are start, middle, and end; each column is a 2×2 four-camera view. Image titles include the paper task, historical ID, original episode name, frame indices, and times.
 
160
 
161
  ![F-3 — Tool-Assisted Extraction](previews/taskF-3_tool_assisted_extraction_3_start_middle_end.jpg)
162
 
163
+ ## Downloading, reading, and verification
164
+
165
+ Install `huggingface_hub`, `h5py`, `numpy`, and `pillow`. The pinned revision below is the reviewed data commit in PR #2; `main` still refers to the older release until the PR is merged.
166
 
167
  ```python
168
+ from huggingface_hub import snapshot_download
169
+
170
+ root = snapshot_download(
171
+ repo_id="tower-benchmark/TOWER-SimData",
172
+ repo_type="dataset",
173
+ revision="642a2bfbe1ca273f1d7e476187fde4e775db9e56",
174
+ local_dir="TOWER-SimData-v2",
175
+ allow_patterns=[
176
+ "data/taskC-2_extract_and_stack_2/*.hdf5",
177
+ "MANIFEST.jsonl", "CHECKSUMS.sha256", "TASK_MAPPING.json",
178
+ "schema/*", "README.md", "LICENSE", "CITATION.cff",
179
+ ],
180
+ )
181
  ```
182
 
183
+ This example downloads only C-2. To download all 600 episodes (about 129.93 GiB of HDF5 payloads), omit `allow_patterns`. The documentation/inspection example added after the pinned data revision is available in this PR's `examples/inspect_episode.py`.
184
+
185
+ Inspect a local episode with the included example:
186
+
187
+ ```bash
188
+ python examples/inspect_episode.py TOWER-SimData-v2/data/<folder>/<episode>.hdf5
189
+ ```
190
+
191
+ The example checks core shapes and finite state/command values, reports units, timestamps and episode-level success, and decodes sampled camera frames. It neither shifts actions nor certifies semantic success or posture compliance.
192
+
193
+ For a **complete** download, run from its root:
194
+
195
  ```bash
196
  sha256sum --check CHECKSUMS.sha256
197
  ```
198
 
199
+ For a **partial** download, validate the entries for the selected files only; absent files from other tasks are expected. Each selected file must match its manifest byte count and published SHA256. `source_sha256` describes the pre-redaction source, not the downloadable file.
200
+
201
  ## License and citation
202
 
203
  The dataset is distributed under CC BY 4.0. See `LICENSE` and `CITATION.cff`.
VALIDATION.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Release review scope
2
+
3
+ Reviewed data revision: `642a2bfbe1ca273f1d7e476187fde4e775db9e56` (PR #2).
4
+ This record distinguishes repository-level verification from sampled payload checks.
5
+ It does not certify every trajectory or replace the producer's qualification records.
6
+
7
+ ## Independently checked
8
+
9
+ - Exactly 600 HDF5 paths, with 50 per A–F × 2/3-layer configuration.
10
+ - All manifest paths match the repository file inventory; no legacy Task3 HDF5 directories remain in this revision.
11
+ - All 600 published hashes match `CHECKSUMS.sha256` and Hugging Face's LFS object IDs; all sizes match LFS/repository metadata. This compares metadata, not 600 fully downloaded payloads.
12
+ - All `TASK_MAPPING.json` episode, frame and byte totals match the manifest: 1,659,079 frames and 129.92517953552306 GiB of HDF5 payloads.
13
+ - All 600 published hashes and all 600 source hashes are distinct.
14
+ - A-2 and C-2 samples were opened through HDF5 range reads. Start/middle/end JPEGs from all four cameras decoded at 320×240.
15
+ - One complete C-2 file was downloaded and SHA256-verified: `data/taskC-2_extract_and_stack_2/episode_000279_20261030T033940Z_e664b157.hdf5` (53,506,506 bytes). Its core state arrays were finite and its simulation timestamps strictly increasing. Twelve decoded images were visually inspected. The inspection loader was tested on this file.
16
+ - In the sampled C-2 file, checked root and object attributes contained no `/mnt/`, `/root/`, `/home/`, or `/Users/` paths. This is not an all-file privacy scan.
17
+
18
+ ## Still needed from the release producer
19
+
20
+ 1. Publish a sanitized source-pool manifest identity, exact deterministic selection rule, and held-out identity list or equivalent verifiable exclusion evidence. Bind each selected episode to that provenance. The current manifest records the selected files, but does not reconstruct selection from the claimed 728 training episodes or verify exclusion of the 24 held-out episodes.
21
+ 2. Attach hash-bound per-episode qualification results for the released set, including the ordinary-grasp policy, approach/carry trajectory checks, and the scope of recorded-phase visual review. A success label, a reverse-grasp flag, or three decoded timestamps alone does not establish those checks.
22
+ 3. Verify and document the training observation-to-action pairing, reference/issued/applied-command conversion and timing, and final-row policy. The raw inspection example deliberately does not choose a training convention.
23
+ 4. Confirm image dimensions across all released files, finalize citation date when publication is approved, and preserve the distinction between this 600-episode SIM subset and the paper's full SIM/REAL dataset.
24
+
25
+ No complete video playback, all-episode checksum download, independent success rescoring,
26
+ or full-set posture requalification was performed in this review. Source recordings and
27
+ payloads have not been modified by the documentation follow-up.
examples/inspect_episode.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Inspect a v9 raw episode; does not construct aligned training targets."""
2
+ import argparse
3
+ import io
4
+ import json
5
+
6
+ import h5py
7
+ import numpy as np
8
+ from PIL import Image
9
+
10
+
11
+ def inspect(path):
12
+ with h5py.File(path, "r") as episode:
13
+ times = episode["sim/time"][:]
14
+ if times.ndim != 1 or len(times) == 0:
15
+ raise ValueError("Expected a nonempty sim/time vector")
16
+ if not np.isfinite(times).all() or not np.all(np.diff(times) > 0):
17
+ raise ValueError("sim/time must be finite and strictly increasing")
18
+ count = len(times)
19
+ fields = {}
20
+ for key, width in [("observations/qpos", 16), ("leader/qpos", 16),
21
+ ("observations/eef", 14), ("leader/eef", 14),
22
+ ("lifter/action_mm", 2)]:
23
+ dataset = episode[key]
24
+ if dataset.shape != (count, width):
25
+ raise ValueError(f"Unexpected shape for {key}: {dataset.shape}")
26
+ if not np.isfinite(dataset[:]).all():
27
+ raise ValueError(f"Nonfinite values in {key}")
28
+ fields[key] = {
29
+ "shape": list(dataset.shape),
30
+ "dtype": str(dataset.dtype),
31
+ "attributes": {k: str(v) for k, v in dataset.attrs.items()},
32
+ }
33
+ cameras = {}
34
+ for camera in ["right_front_camera", "left_back_camera",
35
+ "left_wrist_camera", "back_wrist_camera"]:
36
+ frames = episode[f"observations/images/{camera}"]
37
+ if frames.shape != (count,):
38
+ raise ValueError(f"Camera length mismatch: {camera}")
39
+ samples = []
40
+ for index in sorted({0, count // 2, count - 1}):
41
+ payload = frames[index]
42
+ blob = payload.tobytes() if hasattr(payload, "tobytes") else payload
43
+ with Image.open(io.BytesIO(blob)) as image:
44
+ image.load()
45
+ samples.append({"frame": index, "size": list(image.size)})
46
+ cameras[camera] = samples
47
+ timing = {}
48
+ for key in ["physical/issued_command/tick", "physical/applied_command/tick"]:
49
+ if key in episode:
50
+ data = episode[key]
51
+ timing[key] = {"shape": list(data.shape),
52
+ "first": int(data[0]), "last": int(data[-1])}
53
+ return {
54
+ "frames": count,
55
+ "sim_time_first_last": [float(times[0]), float(times[-1])],
56
+ "metadata": {k: str(episode.attrs[k]) for k in
57
+ ["schema_version", "fps", "physics_hz", "command_hz",
58
+ "extra_command_delay_ms", "task_success", "timestamp_clock"]
59
+ if k in episode.attrs},
60
+ "fields": fields, "sampled_images": cameras, "command_ticks": timing,
61
+ "scope": "Raw inspection only; no action alignment, posture or success certification.",
62
+ }
63
+
64
+
65
+ if __name__ == "__main__":
66
+ parser = argparse.ArgumentParser(description=__doc__)
67
+ parser.add_argument("episode", help="Local HDF5 episode path")
68
+ print(json.dumps(inspect(parser.parse_args().episode), indent=2))