|
Download data/README.md from DocD0c/VorA: direct link, hf CLI and curl.
- Browser
- Download file 19.7 kB
-
https://huggingface.co/datasets/DocD0c/VorA/resolve/main/data/README.md
- Command line
-
hf download hf://datasets/DocD0c/VorA/data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/DocD0c/VorA/resolve/main/data/README.md
19.7 kB
| # Data guide | |
| 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. | |
| [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) | |
| ## Directory map | |
| 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. | |
| ```text | |
| recorded/ | |
| raw/<task>/<optional-subtask>/episode_<id>.hdf5 | |
| hand_arm_masks/<matching-path>/episode_<id>.masks.h5 | |
| instruction_annotations/*.jsonl | |
| language/ | |
| manifest.json | |
| captions.jsonl | |
| rgb_data/{robot_rgb.npy,robot_state.npy,records.jsonl,stats.json,complete.json} | |
| synthetic_2d/ | |
| throwing/training/ # fixed_* and aimed_* datasets | |
| throwing/adaptive_evaluation/ | |
| {rebound,pushing}/{training,adaptive_training}/ | |
| paired_evaluation/{throw,rebound,pushing}/ | |
| synthetic_3d/ | |
| {gate,bank,ramp}/fixed_q16/train/shard_00...shard_31/ | |
| {gate,bank,ramp}/{fixed_shared_q32,adaptive_shared_q32}/ | |
| train/shard_00...shard_31/ | |
| evaluation/ | |
| paired_evaluation/{gate,bank,ramp}/ | |
| curling/ | |
| train/train_mixed/ | |
| test/<source-scene>_to_<target-scene>/ | |
| confirmation/<source-scene>_to_<target-scene>/ | |
| ``` | |
| Human2Robot recordings and their annotation layers are under `recorded/`. The four released models are listed in [weights/](../weights/README.md). Synthetic task data remain available under `synthetic_2d/`, `synthetic_3d/` and `curling/`; their model weights are not included. | |
| ## Download one group | |
| Install the data dependencies: | |
| ```bash | |
| pip install huggingface_hub zstandard numpy h5py | |
| ``` | |
| Fetch the helper and index from the same revision. This downloads only two small files: | |
| ```python | |
| from huggingface_hub import HfApi, hf_hub_download | |
| repo = "DocD0c/VorA" | |
| revision = HfApi().repo_info(repo, repo_type="dataset").sha | |
| print("Use this revision in the next command:", revision) | |
| for name in ("tools/materialize_data.py", "data/index.jsonl"): | |
| hf_hub_download(repo, name, repo_type="dataset", | |
| revision=revision, local_dir="vora") | |
| ``` | |
| Then restore one group, using the printed commit SHA: | |
| ```bash | |
| python vora/tools/materialize_data.py \ | |
| --group synthetic_2d/throwing/training \ | |
| --output ./datasets --revision <commit-sha> --dry-run | |
| ``` | |
| 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. | |
| 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. | |
| ## Conventions | |
| `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). | |
| 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`. | |
| `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. | |
| 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. | |
| ## Recorded data | |
| ### Raw episodes | |
| 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. | |
| | HDF5 key | Shape | Dtype | Meaning | | |
| | --- | --- | --- | --- | | |
| | `cam_data/human_camera` | `(T,240,426,3)` | `uint8` | Human camera RGB | | |
| | `cam_data/robot_camera` | `(T,240,426,3)` | `uint8` | Robot camera RGB | | |
| | `depth_data/{human_camera,robot_camera}` | `(T,240,426)` | `uint16` | Original depth values | | |
| | `action` | `(T,7)` | `float32` | v1 human-hand pose in the robot frame: XYZ, roll/pitch/yaw, gripper | | |
| | `end_position` | `(T,6)` | `float32` | Robot end-effector XYZ and roll/pitch/yaw; Euler XYZ angles in degrees | | |
| | `gripper_state` | `(T,)` | `float32` | 1 = open, 0 = closed | | |
| | `qpos`, `qvel` | `(T,7)` | `float32` | Joint position and velocity | | |
| | `transformed_hand_coords` | `(T,24,3)` | `float32` | Transformed hand coordinates | | |
| | `transformed_hand_frames` | `(T,4,3)` | `float32` | Transformed hand frame coordinates | | |
| | `step`, `timestamp` | `(T,)` | `int64` | Original sequence indices and timestamps | | |
| | `instruction_en` | scalar | HDF5 string | Episode instruction | | |
| 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. | |
| ```python | |
| import h5py | |
| with h5py.File(episode_path, "r") as f: | |
| human_frame = f["cam_data/human_camera"][0] | |
| robot_frame = f["cam_data/robot_camera"][0] | |
| instruction = f["instruction_en"].asstr()[()] | |
| print(human_frame.shape, robot_frame.shape, instruction) | |
| ``` | |
| ### Hand–arm masks | |
| 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: | |
| ```python | |
| import numpy as np | |
| import h5py | |
| with h5py.File(mask_path, "r") as f: | |
| mask = np.unpackbits(f["masks"][0], axis=-1, | |
| count=426, bitorder="big").astype(bool) | |
| # mask.shape == (240,426) | |
| ``` | |
| ### Captions and aligned robot windows | |
| The final **5,971 human-camera subcaptions** are available in [captions.jsonl](recorded/language/captions.jsonl). See the [subcaption guide](recorded/language/README.md) for the annotation protocol, complete fields, quality flags and a text-only download example. | |
| | File | Contents / alignment | | |
| | --- | --- | | |
| | `language/manifest.json` | `episodes` and `segments`; segments include `uid`, raw `path`, frame indices, estimated times and split labels | | |
| | `language/captions.jsonl` | One caption record per line; `uid`, `caption`, raw `path`, inspected frames, availability cutoff and review metadata | | |
| | `language/rgb_data/records.jsonl` | One row per aligned robot window; `uid`, `caption_uid`, `caption`, `query_start`, `caption_last_frame`, raw `path`, `split` | | |
| | `language/rgb_data/robot_rgb.npy` | `(15335,9,240,426,3)`, `uint8`; row `i` matches line `i` of `records.jsonl` | | |
| | `language/rgb_data/robot_state.npy` | `(15335,33,7)`, `float32`; six end-effector fields followed by gripper state | | |
| | `language/rgb_data/stats.json` | Robot and human-action mean/std vectors | | |
| | `language/rgb_data/complete.json` | Array hashes and split counts: 14,634 train, 701 test windows | | |
| 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. | |
| ```python | |
| import json | |
| import numpy as np | |
| from pathlib import Path | |
| root = Path("datasets/recorded/language/rgb_data") | |
| rows = [json.loads(line) for line in (root / "records.jsonl").open()] | |
| rgb = np.load(root / "robot_rgb.npy", mmap_mode="r", allow_pickle=False) | |
| state = np.load(root / "robot_state.npy", mmap_mode="r", allow_pickle=False) | |
| i = 0 | |
| assert len(rows) == len(rgb) == len(state) | |
| print(rows[i]["caption"], rows[i]["split"], rgb[i].shape, state[i].shape) | |
| ``` | |
| `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. | |
| 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. | |
| ## 2D tasks | |
| 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. | |
| | Task | `query` | `action`, `probe` | `future` | `video` | `motion` | | |
| | --- | --- | --- | --- | --- | --- | | |
| | Throwing | `(N,17)` | `(N,2)` | `(N,16,3)` | `(S,32,64,64,3)` | `(N,12)` | | |
| | Rebound | `(N,10)` | `(N,2)` | `(N,16,2)` | `(S,16,64,64,3)` | `(N,6)` | | |
| | Pushing | `(N,9)` | `(N,1)` | `(N,16,2)` | `(S,32,64,64,3)` | `(S,81,3)` | | |
| `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`. | |
| Query vectors, in stored order: | |
| - **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. | |
| - **Rebound, 10 values:** target start XYZ, target goal XY, mass, wall distance, cosine and sine of wall angle, duration. | |
| - **Pushing, 9 values:** target start XY, target goal XY, mass, slope, duration, source mass, source slope. | |
| 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,)`. | |
| This difference in motion indexing is intentional: | |
| ```python | |
| import numpy as np | |
| with np.load("datasets/synthetic_2d/pushing/training/train.npz", | |
| allow_pickle=False) as d: | |
| i = 0 | |
| source = int(d["video_index"][i]) | |
| query, action = d["query"][i], d["action"][i] | |
| video, motion = d["video"][source], d["motion"][source] | |
| # For throwing/rebound, motion is indexed by i, not source. | |
| ``` | |
| `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. | |
| ## 3D tasks | |
| 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. | |
| | File / field | Shape | Role | | |
| | --- | --- | --- | | |
| | `records.npz: query` | `(N,16)` | Padded target-task query | | |
| | `records.npz: action` | `(N,6)` | Padded expert action | | |
| | `records.npz: nominal_action` | `(N,6)` | Nominal reference action | | |
| | `records.npz: source_id` | `(N,)` | Row in the source arrays | | |
| | `records.npz: family, sibling, query_index` | `(N,)` each | Pairing/group identities | | |
| | `source_rgb.npy` | `(S,16,96,96,3)` | RGB demonstrations, `uint8` | | |
| | `source_motion.npy` | `(S,12)` | Numerical source motion; original float dtype retained | | |
| | `source_context.npy` | `(S,16)` | Shared-protocol source task fields, `float32`; absent from `fixed_q16` | | |
| | `source_audit.npz` | task-dependent | Source query, action, response and physics for audit | | |
| `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**. | |
| **`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. | |
| ```python | |
| from pathlib import Path | |
| import numpy as np | |
| root = Path("datasets/synthetic_3d/gate/fixed_shared_q32/train/shard_00") | |
| with np.load(root / "records.npz", allow_pickle=False) as d: | |
| i = 0 | |
| source = int(d["source_id"][i]) | |
| context = np.load(root / "source_context.npy", mmap_mode="r") | |
| query32 = np.concatenate([d["query"][i], context[source]]).astype(np.float32) | |
| action = d["action"][i] | |
| video = np.load(root / "source_rgb.npy", mmap_mode="r")[source] | |
| motion = np.load(root / "source_motion.npy", mmap_mode="r")[source] | |
| ``` | |
| 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. | |
| 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. | |
| ## Curling | |
| Every split/scene directory contains `records.npz`, `source_videos.npy`, `target_images.npy` and `DATA_AUDIT.json`. | |
| | Field / file | Shape | Meaning | | |
| | --- | --- | --- | | |
| | `records.npz: query` | `(N,4)` | Target start XY followed by goal XY | | |
| | `records.npz: source` | `(N,4)` | Source start XY followed by source launch command XY | | |
| | `records.npz: action` | `(N,2)` | Expert target launch command | | |
| | `records.npz: video_index` | `(N,)` | Source-video row | | |
| | `source_videos.npy` | `(S,16,64,64,3)` | Source demonstrations | | |
| | `target_images.npy` | `(N,64,64,3)` | Target initial image and visible goal, indexed by query row | | |
| 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`. | |
| `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. | |
| 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`. | |
| ## File index and deduplication | |
| 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. | |
| [`index.jsonl`](index.jsonl) has one JSON object per logical path: | |
| | Field | Meaning | | |
| | --- | --- | | |
| | `path` | Required restored path, starting with `data/` | | |
| | `sha256`, `size` | Hash and byte count after decompression | | |
| | `stored_path` | File actually downloaded from the Hub; may belong to another group | | |
| | `stored_sha256`, `stored_size` | Downloaded-file hash and byte count | | |
| | `compression` | `none` or `zstd` | | |
| [`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. | |
| 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. | |
| ## Human2Robot attribution and terms | |
| The raw recordings are the **H&R / HumanAndRobot** dataset from *Human2Robot: Learning Robot Actions from Paired Human-Robot Videos*, by Sicheng Xie and colleagues. This archive uses its v1 format. In particular, v1 `action` describes the human hand in the robot coordinate frame; it must not be confused with robot `end_position` plus `gripper_state`. Field definitions follow the [official dataset card](https://huggingface.co/datasets/dannyXSC/HumanAndRobot). | |
| The added subcaptions, segment alignment and masks are separate processing/annotation layers. We credit the original dataset and do not claim to have collected its recordings. Cleanup changes metadata and packaging; the original numerical observations are preserved. Please cite the upstream work when using its data: | |
| ```bibtex | |
| @inproceedings{xie2025human2robot, | |
| title={Human2robot: Learning robot actions from paired human-robot videos}, | |
| author={Xie, Sicheng and Cao, Haidong and Weng, Zejia and Xing, Zhen and Chen, Haoran and Shen, Shiwei and Leng, Jiaqi and Wu, Zuxuan and Jiang, Yu-Gang}, | |
| booktitle={Proceedings of the AAAI Conference on Artificial Intelligence}, | |
| year={2026} | |
| } | |
| ``` | |
| The [official code repository](https://github.com/SII-dannyXSC/Human2Robot) includes an [Apache-2.0 LICENSE](https://github.com/SII-dannyXSC/Human2Robot/blob/main/LICENSE). At the inspected dataset revision `79c1b0e5f488567aa8fea87f98c1c8a286227cc1`, the Hugging Face dataset card has no license field and its file listing contains no separate license, terms or notice file. Thus this archive does **not** assert that the code license also grants rights to redistribute the dataset. Public availability and a citation request do not themselves establish those rights; the dataset's licensing scope remains unconfirmed. No blanket license is assigned here to the upstream recordings or to all derived artifacts. Consult the upstream maintainers for permission where required. | |
| This citation identifies the upstream dataset only. The added annotation layer does not imply endorsement by its authors. | |