Document dataset structure, fields, indexing and loading examples
Browse files- README.md +1 -1
- data/README.md +271 -43
- data/schema.json +0 -0
README.md
CHANGED
|
@@ -58,6 +58,6 @@ python tools/materialize_data.py --group synthetic_2d/throwing \
|
|
| 58 |
--output ./datasets --revision <commit-sha>
|
| 59 |
```
|
| 60 |
|
| 61 |
-
Use `--dry-run` to see the download size first. The script verifies checksums before and after decompression.
|
| 62 |
|
| 63 |
Recorded sequences originate from the upstream [H&R dataset](https://huggingface.co/datasets/dannyXSC/HumanAndRobot). Upstream terms continue to apply. Synthetic tasks contain simulator-generated observations and labels.
|
|
|
|
| 58 |
--output ./datasets --revision <commit-sha>
|
| 59 |
```
|
| 60 |
|
| 61 |
+
Use `--dry-run` to see the download size first. The script verifies checksums before and after decompression. The [data guide](data/README.md) explains directories, array shapes, field meanings, split conventions and complete download examples; [schema.json](data/schema.json) lists inspected file layouts.
|
| 62 |
|
| 63 |
Recorded sequences originate from the upstream [H&R dataset](https://huggingface.co/datasets/dannyXSC/HumanAndRobot). Upstream terms continue to apply. Synthetic tasks contain simulator-generated observations and labels.
|
data/README.md
CHANGED
|
@@ -1,51 +1,279 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
|
| 4 |
-
path, its canonical stored path, compression, byte count and SHA-256 checksum.
|
| 5 |
-
Aliases refer to identical content, not merely matching filenames or shapes.
|
| 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 |
```bash
|
| 36 |
-
python tools/materialize_data.py
|
| 37 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
-
They are retained separately because they serve different loaders. Exact copies
|
| 47 |
-
across source servers and repeated synthetic inputs are stored once.
|
| 48 |
|
| 49 |
-
|
| 50 |
-
operational fields. Numerical observations and targets are preserved. Original
|
| 51 |
-
server provenance and the selection audit remain outside this repository.
|
|
|
|
| 1 |
+
# Data guide
|
| 2 |
|
| 3 |
+
This directory contains recorded human/robot sequences, synthetic demonstration–query pairs, and their evaluation inputs. Start with the task you need; the whole collection is not required to load one model.
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
[Directory map](#directory-map) · [Download](#download-one-group) · [Recorded data](#recorded-data) · [2D tasks](#2d-tasks) · [3D tasks](#3d-tasks) · [Curling](#curling) · [File index](#file-index-and-deduplication)
|
| 6 |
+
|
| 7 |
+
## Directory map
|
| 8 |
+
|
| 9 |
+
Paths below describe the **restored data layout**. On the Hub, some arrays have a `.zst` suffix and byte-identical files may be stored under another task. The download helper reconstructs the paths shown here.
|
| 10 |
+
|
| 11 |
+
```text
|
| 12 |
+
recorded/
|
| 13 |
+
raw/<task>/<optional-subtask>/episode_<id>.hdf5
|
| 14 |
+
hand_arm_masks/<matching-path>/episode_<id>.masks.h5
|
| 15 |
+
instruction_annotations/*.jsonl
|
| 16 |
+
language/
|
| 17 |
+
manifest.json
|
| 18 |
+
captions.jsonl
|
| 19 |
+
rgb_data/{robot_rgb.npy,robot_state.npy,records.jsonl,stats.json,complete.json}
|
| 20 |
+
synthetic_2d/
|
| 21 |
+
throwing/training/ # fixed_* and aimed_* datasets
|
| 22 |
+
throwing/adaptive_evaluation/
|
| 23 |
+
{rebound,pushing}/{training,adaptive_training}/
|
| 24 |
+
paired_evaluation/{throw,rebound,pushing}/
|
| 25 |
+
synthetic_3d/
|
| 26 |
+
{gate,bank,ramp}/fixed_q16/train/shard_00...shard_31/
|
| 27 |
+
{gate,bank,ramp}/{fixed_shared_q32,adaptive_shared_q32}/
|
| 28 |
+
train/shard_00...shard_31/
|
| 29 |
+
evaluation/
|
| 30 |
+
paired_evaluation/{gate,bank,ramp}/
|
| 31 |
+
curling/
|
| 32 |
+
train/train_mixed/
|
| 33 |
+
test/<source-scene>_to_<target-scene>/
|
| 34 |
+
confirmation/<source-scene>_to_<target-scene>/
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
| Data group | Matching weight directory | Purpose |
|
| 38 |
+
| --- | --- | --- |
|
| 39 |
+
| `recorded/raw`, masks and language | `weights/recorded`, `weights/coupling`, `weights/language` | Paired observations, robot states, human motion and captions |
|
| 40 |
+
| `synthetic_2d/throwing` | `weights/throwing` | Launch commands under varying dynamics; `aimed` denotes adaptive demonstrations |
|
| 41 |
+
| `synthetic_2d/rebound` | `weights/rebound` | Launch commands for a contact/rebound task |
|
| 42 |
+
| `synthetic_2d/pushing` | `weights/pushing` | Pushing commands with varying friction |
|
| 43 |
+
| `synthetic_3d/{gate,bank,ramp}` | `weights/{gate,bank,ramp}` | Spatial tasks with different query contracts |
|
| 44 |
+
| `curling` | `weights/curling` | Target images, source videos and two-dimensional launch commands |
|
| 45 |
+
|
| 46 |
+
## Download one group
|
| 47 |
+
|
| 48 |
+
Install the data dependencies:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
pip install huggingface_hub zstandard numpy h5py
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
Fetch the helper and index from the same revision. This downloads only two small files:
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from huggingface_hub import HfApi, hf_hub_download
|
| 58 |
+
|
| 59 |
+
repo = "DocD0c/VorA"
|
| 60 |
+
revision = HfApi().repo_info(repo, repo_type="dataset").sha
|
| 61 |
+
print("Use this revision in the next command:", revision)
|
| 62 |
+
for name in ("tools/materialize_data.py", "data/index.jsonl"):
|
| 63 |
+
hf_hub_download(repo, name, repo_type="dataset",
|
| 64 |
+
revision=revision, local_dir="vora")
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
Then restore one group, using the printed commit SHA:
|
| 68 |
|
| 69 |
```bash
|
| 70 |
+
python vora/tools/materialize_data.py \
|
| 71 |
+
--group synthetic_2d/throwing/training \
|
| 72 |
+
--output ./datasets --revision <commit-sha> --dry-run
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Remove `--dry-run` to download. This example creates `./datasets/synthetic_2d/throwing/training/`. The output omits the leading `data/` component. A broader group such as `synthetic_2d/throwing` includes its evaluation data too. While [upload status](../STATUS.json) is incomplete, some indexed files are still unavailable; use a later revision once the transfer finishes.
|
| 76 |
+
|
| 77 |
+
The helper verifies compressed and restored checksums and recreates identical files as hardlinks. Treat restored shared files as read-only, or make a copy before editing. Existing files with incorrect checksums cause an error rather than being overwritten.
|
| 78 |
+
|
| 79 |
+
## Conventions
|
| 80 |
+
|
| 81 |
+
`N` denotes query records, `S` distinct source demonstrations, and `T` frames in one recording. Images are RGB with channels last: `(time, height, width, 3)` or `(height, width, 3)`, stored as `uint8` in `[0,255]`. Array shapes and original dtypes from representative files are listed in [schema.json](schema.json).
|
| 82 |
+
|
| 83 |
+
A query record and a source demonstration are different units. Several query records can share one demonstration. Use `video_index` for 2D/curling data and `source_id` for 3D data; do not assume `video[i]` is the demonstration for query `i`.
|
| 84 |
+
|
| 85 |
+
`family`, `sibling` and `query_index` describe paired synthetic examples. Keep siblings and all queries from one family together when constructing new splits. IDs can restart in a different shard or dataset; retain the shard/dataset identity when joining records.
|
| 86 |
+
|
| 87 |
+
Stored numeric values are not generally ready-normalized model inputs. Preserve the corresponding model's preprocessing, modality masks and action scaling. Physics coefficients and audit labels are present for reconstruction or evaluation; their presence does not make them policy inputs.
|
| 88 |
+
|
| 89 |
+
## Recorded data
|
| 90 |
+
|
| 91 |
+
### Raw episodes
|
| 92 |
+
|
| 93 |
+
Each `.hdf5` file contains one variable-length sequence. The following layout was inspected in an exported episode; use each file's actual shapes rather than fixing its frame count.
|
| 94 |
+
|
| 95 |
+
| HDF5 key | Shape | Dtype | Meaning |
|
| 96 |
+
| --- | --- | --- | --- |
|
| 97 |
+
| `cam_data/human_camera` | `(T,240,426,3)` | `uint8` | Human camera RGB |
|
| 98 |
+
| `cam_data/robot_camera` | `(T,240,426,3)` | `uint8` | Robot camera RGB |
|
| 99 |
+
| `depth_data/{human_camera,robot_camera}` | `(T,240,426)` | `uint16` | Original depth values |
|
| 100 |
+
| `action` | `(T,7)` | `float32` | Recorded action vector |
|
| 101 |
+
| `end_position` | `(T,6)` | `float32` | Recorded end-effector position/orientation fields |
|
| 102 |
+
| `gripper_state` | `(T,)` | `float32` | Gripper state |
|
| 103 |
+
| `qpos`, `qvel` | `(T,7)` | `float32` | Joint position and velocity |
|
| 104 |
+
| `transformed_hand_coords` | `(T,24,3)` | `float32` | Transformed hand coordinates |
|
| 105 |
+
| `transformed_hand_frames` | `(T,4,3)` | `float32` | Transformed hand frame coordinates |
|
| 106 |
+
| `step`, `timestamp` | `(T,)` | `int64` | Original sequence indices and timestamps |
|
| 107 |
+
| `instruction_en` | scalar | HDF5 string | Episode instruction |
|
| 108 |
+
|
| 109 |
+
The archive retains original units and timestamp values. Depth scaling, pose conventions and timestamp units must not be inferred from dtype alone. In particular, caption metadata labels timestamp interpolation as estimated and its Unix-seconds assumption as unverified.
|
| 110 |
+
|
| 111 |
+
```python
|
| 112 |
+
import h5py
|
| 113 |
+
|
| 114 |
+
with h5py.File(episode_path, "r") as f:
|
| 115 |
+
human_frame = f["cam_data/human_camera"][0]
|
| 116 |
+
robot_frame = f["cam_data/robot_camera"][0]
|
| 117 |
+
instruction = f["instruction_en"].asstr()[()]
|
| 118 |
+
print(human_frame.shape, robot_frame.shape, instruction)
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
### Hand–arm masks
|
| 122 |
+
|
| 123 |
+
Mask paths mirror raw episode paths. `masks` is a **bit-packed** `uint8` array with shape `(T,H,ceil(W/8))`; for a width of 426, the stored last dimension is 54 bytes. Unpack along the last axis, using the original image width:
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
import numpy as np
|
| 127 |
+
import h5py
|
| 128 |
+
|
| 129 |
+
with h5py.File(mask_path, "r") as f:
|
| 130 |
+
mask = np.unpackbits(f["masks"][0], axis=-1,
|
| 131 |
+
count=426, bitorder="big").astype(bool)
|
| 132 |
+
# mask.shape == (240,426)
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
### Captions and aligned robot windows
|
| 136 |
+
|
| 137 |
+
| File | Contents / alignment |
|
| 138 |
+
| --- | --- |
|
| 139 |
+
| `language/manifest.json` | `episodes` and `segments`; segments include `uid`, raw `path`, frame indices, estimated times and split labels |
|
| 140 |
+
| `language/captions.jsonl` | One caption record per line; `uid`, `caption`, raw `path`, inspected frames, availability cutoff and review metadata |
|
| 141 |
+
| `language/rgb_data/records.jsonl` | One row per aligned robot window; `uid`, `caption_uid`, `caption`, `query_start`, `caption_last_frame`, raw `path`, `split` |
|
| 142 |
+
| `language/rgb_data/robot_rgb.npy` | `(15335,9,240,426,3)`, `uint8`; row `i` matches line `i` of `records.jsonl` |
|
| 143 |
+
| `language/rgb_data/robot_state.npy` | `(15335,33,7)`, `float32`; six end-effector fields followed by gripper state |
|
| 144 |
+
| `language/rgb_data/stats.json` | Robot and human-action mean/std vectors |
|
| 145 |
+
| `language/rgb_data/complete.json` | Array hashes and split counts: 14,634 train, 701 test windows |
|
| 146 |
+
|
| 147 |
+
The RGB windows are pixels, not latent features. Use `caption_uid` to join a window to its caption. A caption is available only after its last inspected source frame; do not use it for a prediction prefix before that cutoff. Review flags are retained: `human_gold=false` does not denote human-verified captions.
|
| 148 |
+
|
| 149 |
+
```python
|
| 150 |
+
import json
|
| 151 |
+
import numpy as np
|
| 152 |
+
from pathlib import Path
|
| 153 |
+
|
| 154 |
+
root = Path("datasets/recorded/language/rgb_data")
|
| 155 |
+
rows = [json.loads(line) for line in (root / "records.jsonl").open()]
|
| 156 |
+
rgb = np.load(root / "robot_rgb.npy", mmap_mode="r", allow_pickle=False)
|
| 157 |
+
state = np.load(root / "robot_state.npy", mmap_mode="r", allow_pickle=False)
|
| 158 |
+
i = 0
|
| 159 |
+
assert len(rows) == len(rgb) == len(state)
|
| 160 |
+
print(rows[i]["caption"], rows[i]["split"], rgb[i].shape, state[i].shape)
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
`instruction_annotations/` contains instruction and quality-review records, including `clean_behavior_eligible`, `needs_review` and `training_recommendation`. Unresolved/excluded rows are not positive training labels. Some legacy evidence/path strings were redacted or refer to auxiliary files outside this archive; use the language manifest and file index for downloadable paths.
|
| 164 |
+
|
| 165 |
+
The language manifest has 1,314 episode entries. Four references under `recorded/raw/cloth/eval/` (`cloth12.hdf5`, `cloth13.hdf5`, `cloth21.hdf5`, `cloth31.hdf5`) are not included in the current raw-file selection. The aligned RGB/state windows are separate exported arrays. Check `index.jsonl` before attempting to reopen a raw episode from a manifest entry.
|
| 166 |
+
|
| 167 |
+
## 2D tasks
|
| 168 |
+
|
| 169 |
+
Training directories contain `.npz` archives. `train`, `val` and `test` identify existing splits. Numbered files such as `train_0.npz` are shards. Where both a merged archive and shards exist, select one representation; do not append them together. `aimed_*` in throwing and `adaptive_training/` in rebound/pushing identify adaptive source demonstrations.
|
| 170 |
+
|
| 171 |
+
| Task | `query` | `action`, `probe` | `future` | `video` | `motion` |
|
| 172 |
+
| --- | --- | --- | --- | --- | --- |
|
| 173 |
+
| Throwing | `(N,17)` | `(N,2)` | `(N,16,3)` | `(S,32,64,64,3)` | `(N,12)` |
|
| 174 |
+
| Rebound | `(N,10)` | `(N,2)` | `(N,16,2)` | `(S,16,64,64,3)` | `(N,6)` |
|
| 175 |
+
| Pushing | `(N,9)` | `(N,1)` | `(N,16,2)` | `(S,32,64,64,3)` | `(S,81,3)` |
|
| 176 |
+
|
| 177 |
+
`query` describes the target task. `action` is its expert command. `probe` is a separate command used to generate `future`; **`future` is not the trajectory produced by `action`**. Most numeric arrays are `float64`; rebound futures are `float32`. Images are `uint8`, and index arrays are `int64`.
|
| 178 |
+
|
| 179 |
+
Query vectors, in stored order:
|
| 180 |
+
|
| 181 |
+
- **Throwing, 17 values:** target start XYZ, target goal XY, target mass, target vertical launch speed, source start XYZ, two source goals XY, source mass, source vertical launch speed, source clip duration.
|
| 182 |
+
- **Rebound, 10 values:** target start XYZ, target goal XY, mass, wall distance, cosine and sine of wall angle, duration.
|
| 183 |
+
- **Pushing, 9 values:** target start XY, target goal XY, mass, slope, duration, source mass, source slope.
|
| 184 |
+
|
| 185 |
+
Throwing/rebound actions encode two horizontal launch components; pushing stores one commanded pushing speed. Hidden dynamics (`wind`, `beta`, `damping`, `friction`, `mu`) and fields such as `oracle_error` are evaluation/label-generation metadata. Pushing also provides source-level `tokens` `(S,48)` and `captions` `(S,)`.
|
| 186 |
+
|
| 187 |
+
This difference in motion indexing is intentional:
|
| 188 |
+
|
| 189 |
+
```python
|
| 190 |
+
import numpy as np
|
| 191 |
+
|
| 192 |
+
with np.load("datasets/synthetic_2d/pushing/training/train.npz",
|
| 193 |
+
allow_pickle=False) as d:
|
| 194 |
+
i = 0
|
| 195 |
+
source = int(d["video_index"][i])
|
| 196 |
+
query, action = d["query"][i], d["action"][i]
|
| 197 |
+
video, motion = d["video"][source], d["motion"][source]
|
| 198 |
+
# For throwing/rebound, motion is indexed by i, not source.
|
| 199 |
```
|
| 200 |
|
| 201 |
+
`paired_evaluation/*/paired_queries.npz` stores `id_query` and `ood_query` plus matching `family`, `sibling` and `query_index`. The same row identifies the paired conditions. Neighboring JSON files contain evaluation outputs, not additional training examples. The directory uses `throw` for the task called `throwing` elsewhere.
|
| 202 |
+
|
| 203 |
+
## 3D tasks
|
| 204 |
+
|
| 205 |
+
Each training shard has its own source table. The inspected shards contain `N=512` queries and `S=128` demonstrations, with 32 shards per task/protocol. Source indices are local to the shard.
|
| 206 |
+
|
| 207 |
+
| File / field | Shape | Role |
|
| 208 |
+
| --- | --- | --- |
|
| 209 |
+
| `records.npz: query` | `(N,16)` | Padded target-task query |
|
| 210 |
+
| `records.npz: action` | `(N,6)` | Padded expert action |
|
| 211 |
+
| `records.npz: nominal_action` | `(N,6)` | Nominal reference action |
|
| 212 |
+
| `records.npz: source_id` | `(N,)` | Row in the source arrays |
|
| 213 |
+
| `records.npz: family, sibling, query_index` | `(N,)` each | Pairing/group identities |
|
| 214 |
+
| `source_rgb.npy` | `(S,16,96,96,3)` | RGB demonstrations, `uint8` |
|
| 215 |
+
| `source_motion.npy` | `(S,12)` | Numerical source motion; original float dtype retained |
|
| 216 |
+
| `source_context.npy` | `(S,16)` | Shared-protocol source task fields, `float32`; absent from `fixed_q16` |
|
| 217 |
+
| `source_audit.npz` | task-dependent | Source query, action, response and physics for audit |
|
| 218 |
+
|
| 219 |
+
`records.npz` additionally contains physics, success flags and error diagnostics. Audit response/physics fields are not inference inputs. Stored actions have six slots; active dimensions are gate **6**, bank **3**, ramp **2**.
|
| 220 |
+
|
| 221 |
+
**`q32` is assembled at loading time.** Its on-disk `query` still has 16 columns. Append the 16 source-context values selected by `source_id`. `fixed_q16` uses only the original 16-column query.
|
| 222 |
+
|
| 223 |
+
```python
|
| 224 |
+
from pathlib import Path
|
| 225 |
+
import numpy as np
|
| 226 |
+
|
| 227 |
+
root = Path("datasets/synthetic_3d/gate/fixed_shared_q32/train/shard_00")
|
| 228 |
+
with np.load(root / "records.npz", allow_pickle=False) as d:
|
| 229 |
+
i = 0
|
| 230 |
+
source = int(d["source_id"][i])
|
| 231 |
+
context = np.load(root / "source_context.npy", mmap_mode="r")
|
| 232 |
+
query32 = np.concatenate([d["query"][i], context[source]]).astype(np.float32)
|
| 233 |
+
action = d["action"][i]
|
| 234 |
+
video = np.load(root / "source_rgb.npy", mmap_mode="r")[source]
|
| 235 |
+
motion = np.load(root / "source_motion.npy", mmap_mode="r")[source]
|
| 236 |
+
```
|
| 237 |
+
|
| 238 |
+
Source context is zero-padded to 16 values. Gate stores start XYZ, waypoint XYZ, goal XYZ and known source mass. Bank stores start XYZ, goal XYZ, panel center XYZ, panel yaw/pitch and source mass. Ramp stores ramp center XYZ, tilt, yaw, half-length, goal XYZ, source mass and local start XY. The shared-protocol loader casts inputs to `float32`, scales RGB by `1/255`, and scales motion, action and nominal-action values by `1/8`; those transformations are not baked into the files.
|
| 239 |
+
|
| 240 |
+
Evaluation folders contain 4,096 paired query records per task, with their own source tables. They are not extra training shards. Their `records.npz` schema differs from training and need not include expert `action`; inspect [schema.json](schema.json) before using a training loader on them.
|
| 241 |
+
|
| 242 |
+
## Curling
|
| 243 |
+
|
| 244 |
+
Every split/scene directory contains `records.npz`, `source_videos.npy`, `target_images.npy` and `DATA_AUDIT.json`.
|
| 245 |
+
|
| 246 |
+
| Field / file | Shape | Meaning |
|
| 247 |
+
| --- | --- | --- |
|
| 248 |
+
| `records.npz: query` | `(N,4)` | Target start XY followed by goal XY |
|
| 249 |
+
| `records.npz: source` | `(N,4)` | Source start XY followed by source launch command XY |
|
| 250 |
+
| `records.npz: action` | `(N,2)` | Expert target launch command |
|
| 251 |
+
| `records.npz: video_index` | `(N,)` | Source-video row |
|
| 252 |
+
| `source_videos.npy` | `(S,16,64,64,3)` | Source demonstrations |
|
| 253 |
+
| `target_images.npy` | `(N,64,64,3)` | Target initial image and visible goal, indexed by query row |
|
| 254 |
+
|
| 255 |
+
Training has **24,000 queries / 6,000 source videos**. Each inspected test/confirmation scene has **2,048 queries / 512 source videos**. Numeric query/source/action arrays are `float64`; both image arrays are `uint8`.
|
| 256 |
+
|
| 257 |
+
`gamma`, `curl`, angle fields, `ambiguity_residual` and `oracle_error_m` describe dynamics and generation checks. They are not policy inputs. The numeric target `query` supplies labels and evaluation coordinates; the supplied image-based policy observes `target_images`, rather than receiving those true coordinates as an input.
|
| 258 |
+
|
| 259 |
+
Use `source_videos[video_index[i]]` and `target_images[i]` for record `i`. `test/` and `confirmation/` are separate populations, not aliases. Scene directories specify source-to-target appearance. Training uses `train_mixed`; test includes `wood_to_glacier`, `glacier_to_wood`, `rink_to_slate`, while confirmation also includes `glacier_to_glacier`.
|
| 260 |
+
|
| 261 |
+
## File index and deduplication
|
| 262 |
+
|
| 263 |
+
The collection has **5,038 logical file paths** backed by **4,025 distinct contents**. Exact deduplication removes **1,013 repeated copies**. Logical size is about **183.17 GB**; unique uncompressed content is **165.40 GB**; stored content after lossless compression is **117.42 GB**. These decimal sizes exclude model weights and documentation.
|
| 264 |
+
|
| 265 |
+
[`index.jsonl`](index.jsonl) has one JSON object per logical path:
|
| 266 |
+
|
| 267 |
+
| Field | Meaning |
|
| 268 |
+
| --- | --- |
|
| 269 |
+
| `path` | Required restored path, starting with `data/` |
|
| 270 |
+
| `sha256`, `size` | Hash and byte count after decompression |
|
| 271 |
+
| `stored_path` | File actually downloaded from the Hub; may belong to another group |
|
| 272 |
+
| `stored_sha256`, `stored_size` | Downloaded-file hash and byte count |
|
| 273 |
+
| `compression` | `none` or `zstd` |
|
| 274 |
+
|
| 275 |
+
[`aliases.jsonl`](aliases.jsonl) lists reused content as `path`, `canonical_path`, `sha256`. The complete file index is sufficient for restoration. A canonical file outside the selected directory is fetched automatically when needed. Content-identical files can be shared across groups; different observation representations, such as raw HDF5 and aligned RGB windows, remain separate.
|
| 276 |
|
| 277 |
+
Use the top-level file index as the authority for this exported archive. Internal generation manifests may describe earlier source paths or pre-cleanup metadata hashes. Personal paths and operational metadata were cleaned during export; array values and dtypes were preserved.
|
|
|
|
|
|
|
| 278 |
|
| 279 |
+
Raw recordings originate from the upstream [H&R dataset](https://huggingface.co/datasets/dannyXSC/HumanAndRobot); upstream terms remain applicable. Synthetic files contain simulator-generated observations and labels.
|
|
|
|
|
|
data/schema.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|