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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-segmentation
|
| 6 |
+
- object-detection
|
| 7 |
+
tags:
|
| 8 |
+
- robotics
|
| 9 |
+
- rgbd
|
| 10 |
+
- instance-segmentation
|
| 11 |
+
- 3d-bounding-boxes
|
| 12 |
+
- robot-learning
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Real-World Data — Camera-3 Annotations
|
| 18 |
+
|
| 19 |
+
This dataset provides **perception annotations for 800 real robot demonstration
|
| 20 |
+
episodes across four tasks**. It is the annotation companion to
|
| 21 |
+
[mzxuan/real_world_data](https://huggingface.co/datasets/mzxuan/real_world_data),
|
| 22 |
+
which contains the original recordings.
|
| 23 |
+
|
| 24 |
+
**Download both datasets for visual robot-learning experiments.** This repository
|
| 25 |
+
does not contain the original RGB, depth, robot state, or action commands. It
|
| 26 |
+
contains masks, object identities and roles, 2D/3D boxes, annotation-only HDF5
|
| 27 |
+
sidecars, and compact visual reviews. The raw HDF5 supplies the observations;
|
| 28 |
+
the annotation HDF5 supplies the matching labels.
|
| 29 |
+
|
| 30 |
+
Only **camera 3** is annotated. No camera-1/camera-2 labels are implied by this
|
| 31 |
+
release. All source recordings remain separate and unchanged.
|
| 32 |
+
|
| 33 |
+
## 1. What is available now?
|
| 34 |
+
|
| 35 |
+
| Annotation task / archive | Raw task directory | Episodes | Camera-3 frames |
|
| 36 |
+
|---|---|---:|---:|
|
| 37 |
+
| `put_cup_in_bowl.tar` | `put_cup_in_bowl_amir` | 200 | 43,368 |
|
| 38 |
+
| `put_bowl_on_rack.tar` | `put_bowl_on_rack_amir` | 200 | 46,180 |
|
| 39 |
+
| `stack_two_cubes.tar` | `stack_two_cubes_amir` | 200 | 43,517 |
|
| 40 |
+
| `put_mug_on_coaster.tar` | `put_mug_on_coaster_amir` | 200 | 44,937 |
|
| 41 |
+
| **Total** | | **800** | **178,002** |
|
| 42 |
+
|
| 43 |
+
Each task contains `clean/1..100` and `d1/1..25`, `d2/1..25`, `d3/1..25`,
|
| 44 |
+
`d4/1..25`. Clean has no deliberately added clutter; d1–d4 indicate one through
|
| 45 |
+
four added clutter objects. The actual obstacle identities vary by episode.
|
| 46 |
+
Read that episode's object roster rather than assuming one roster per condition.
|
| 47 |
+
|
| 48 |
+
There are 178,002 canonical instance masks, 178,002 canonical role masks, and
|
| 49 |
+
800 annotation sidecars. Counts exclude extra historical prompt/repair previews.
|
| 50 |
+
Every JSONL family contains one record per frame and configured object, including
|
| 51 |
+
explicit invisible/invalid records.
|
| 52 |
+
|
| 53 |
+
### Two more tasks will be added later
|
| 54 |
+
|
| 55 |
+
- `place_three_cups_in_bowls`: three sequential cup-to-bowl placements. Physical
|
| 56 |
+
object IDs will remain stable while active target/destination roles change by
|
| 57 |
+
chunk; other objects, including completed pairs, become obstacles.
|
| 58 |
+
- `put_book_in_box`: book placement into a wire file basket, pending further
|
| 59 |
+
annotation review and repair.
|
| 60 |
+
|
| 61 |
+
Neither task's annotations are included or certified by this release. Their raw
|
| 62 |
+
recordings may already be available in the companion dataset. Future releases
|
| 63 |
+
will document their coverage and any schema changes explicitly.
|
| 64 |
+
|
| 65 |
+
## 2. Why is this much smaller than the raw dataset?
|
| 66 |
+
|
| 67 |
+
This release stores labels for one camera, not full multi-camera RGB-D recordings.
|
| 68 |
+
Masks are compressed label images, not RGB photos. JSONL records store small
|
| 69 |
+
numeric descriptions. The HDF5 sidecars use compression and do not duplicate raw
|
| 70 |
+
observations. Only selected frames are rendered for review.
|
| 71 |
+
|
| 72 |
+
The original task folders occupy about 11.2 GiB on disk (9.5 GiB of regular-file
|
| 73 |
+
contents). After excluding the temporary SAM input cache, the **included payload
|
| 74 |
+
is approximately 6.43 GiB**: 2.85 GiB of review/prompt images, 1.75 GiB of JSONL,
|
| 75 |
+
1.07 GiB of sidecars, 0.66 GiB of PNG masks, and 0.10 GiB of metadata. Some old SAM
|
| 76 |
+
caches contain converted JPEG copies as well as symlinks; neither is needed to
|
| 77 |
+
read the annotations. Filesystem allocation is larger because of many small files.
|
| 78 |
+
Tar headers/padding add overhead; consult `release_manifest.json` for exact
|
| 79 |
+
archive byte counts and hashes. No canonical annotation was dropped to save space.
|
| 80 |
+
|
| 81 |
+
These are ordinary **uncompressed `.tar` archives**. PNG, JPEG, and HDF5 already
|
| 82 |
+
compress much of the content. Do not use a gzip-only decompressor on these files.
|
| 83 |
+
|
| 84 |
+
## 3. Download, verify, and extract
|
| 85 |
+
|
| 86 |
+
Install reader/download dependencies:
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
python -m pip install huggingface_hub h5py numpy pillow
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
Download the annotation repository with the official
|
| 93 |
+
[Hugging Face Hub client](https://huggingface.co/docs/huggingface_hub/guides/download):
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
from huggingface_hub import snapshot_download
|
| 97 |
+
|
| 98 |
+
snapshot_download(
|
| 99 |
+
repo_id="mzxuan/real_world_data_annotated",
|
| 100 |
+
repo_type="dataset",
|
| 101 |
+
local_dir="annotation_download",
|
| 102 |
+
)
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
For reproducibility, record the annotation repository's commit ID and pass it as
|
| 106 |
+
`revision=` on subsequent downloads. To download only one task, use
|
| 107 |
+
`allow_patterns=["put_cup_in_bowl.tar", "README.md", "episodes.jsonl",
|
| 108 |
+
"release_manifest.json", "SHA256SUMS", "metadata/*"]`; ignore checksum entries
|
| 109 |
+
for intentionally undownloaded archives when doing a partial verification.
|
| 110 |
+
|
| 111 |
+
For a complete download, run:
|
| 112 |
+
|
| 113 |
+
```bash
|
| 114 |
+
cd annotation_download
|
| 115 |
+
sha256sum -c SHA256SUMS
|
| 116 |
+
mkdir -p ../annotations
|
| 117 |
+
tar -xf put_cup_in_bowl.tar -C ../annotations
|
| 118 |
+
tar -xf put_bowl_on_rack.tar -C ../annotations
|
| 119 |
+
tar -xf stack_two_cubes.tar -C ../annotations
|
| 120 |
+
tar -xf put_mug_on_coaster.tar -C ../annotations
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
Each archive already contains its task directory. For example, extraction creates
|
| 124 |
+
`annotations/put_cup_in_bowl/clean/2/`, not an extra `real_world_annotations_mass_v2`
|
| 125 |
+
directory. Do not strip this task component.
|
| 126 |
+
|
| 127 |
+
`metadata/<task>.files.jsonl` supplies a SHA-256 and size for every archived file.
|
| 128 |
+
`SHA256SUMS` verifies archives and release metadata; the member manifests allow
|
| 129 |
+
checking extracted files too. The build verified every archived member against
|
| 130 |
+
the local accepted source bytes before upload.
|
| 131 |
+
|
| 132 |
+
This is an archive/HDF5 distribution, **not a preconfigured Hugging Face Datasets
|
| 133 |
+
table or a LeRobot export**. Use the file download APIs and your own loader rather
|
| 134 |
+
than assuming `datasets.load_dataset()` will construct training samples.
|
| 135 |
+
|
| 136 |
+
## 4. Get the matching original recordings
|
| 137 |
+
|
| 138 |
+
Raw observations are at
|
| 139 |
+
[mzxuan/real_world_data](https://huggingface.co/datasets/mzxuan/real_world_data).
|
| 140 |
+
`release_manifest.json` records the raw repository revision inspected while
|
| 141 |
+
preparing this release. The release does not assert a fresh byte-for-byte
|
| 142 |
+
comparison of every remote raw tar against the local recordings.
|
| 143 |
+
|
| 144 |
+
Raw archives are organized by task and condition. Example:
|
| 145 |
+
|
| 146 |
+
```python
|
| 147 |
+
from huggingface_hub import hf_hub_download
|
| 148 |
+
|
| 149 |
+
raw_archive = hf_hub_download(
|
| 150 |
+
repo_id="mzxuan/real_world_data",
|
| 151 |
+
repo_type="dataset",
|
| 152 |
+
revision="42b9df8f9ae78e806de4a0388d4b3a5da3221624",
|
| 153 |
+
filename="put_cup_in_bowl_amir/clean/put_cup_in_bowl_amir_clean.tar",
|
| 154 |
+
local_dir="raw_download",
|
| 155 |
+
)
|
| 156 |
+
print(raw_archive)
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
Inspect raw tar members before extraction (`tar -tf <raw_archive>`). Historical
|
| 160 |
+
archives may have different leading directory components; do not assume the
|
| 161 |
+
annotation extraction layout applies to raw archives. Organize the extracted raw
|
| 162 |
+
episode directories so your loader can locate the recorded `episodeN.hdf5`,
|
| 163 |
+
`state.csv`, `meta.json`, and `intrinsics.json` for each manifest entry.
|
| 164 |
+
|
| 165 |
+
**The authoritative episode pairing is `episodes.jsonl`.** Each line records the
|
| 166 |
+
annotation path, sidecar path, raw task/condition/episode, raw archive path, frame
|
| 167 |
+
count, object roster, source metadata hashes, and contact-sheet paths. Do not join
|
| 168 |
+
using the bare episode number: `clean/1` and `d1/1` are different demonstrations,
|
| 169 |
+
and episode numbers repeat across tasks.
|
| 170 |
+
|
| 171 |
+
## 5. Per-episode directory layout
|
| 172 |
+
|
| 173 |
+
```text
|
| 174 |
+
<task>/<condition>/<episode>/
|
| 175 |
+
manifest.json
|
| 176 |
+
audit.json
|
| 177 |
+
validation.json
|
| 178 |
+
sidecar_validation.json
|
| 179 |
+
episodeN.annotations.hdf5
|
| 180 |
+
camera3/
|
| 181 |
+
instances/*.png
|
| 182 |
+
roles/*.png
|
| 183 |
+
boxes2d.jsonl
|
| 184 |
+
boxes3d.jsonl
|
| 185 |
+
boxes2d_amodal.jsonl
|
| 186 |
+
review_samples.json
|
| 187 |
+
review_samples/2d/*.jpg
|
| 188 |
+
review_samples/3d/*.jpg
|
| 189 |
+
contact_sheet.jpg
|
| 190 |
+
contact_sheet3d.jpg
|
| 191 |
+
diagnostics3d/*.jpg
|
| 192 |
+
geometry3d/
|
| 193 |
+
object_dimensions.json
|
| 194 |
+
calibration_report.json
|
| 195 |
+
validation3d.json
|
| 196 |
+
qc3d.json
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
All existing regular task files are retained, including available `config.json`,
|
| 200 |
+
`prompts.json`, repair receipts, and `.work` prompt/repair previews. Some historical
|
| 201 |
+
episodes reference configs/prompts in the original preprocessing checkout instead
|
| 202 |
+
of storing a local copy. Reading the labels requires neither SAM nor these files;
|
| 203 |
+
do not claim the archive alone can regenerate every historical annotation.
|
| 204 |
+
|
| 205 |
+
The only excluded subtree is `**/.work/sam2_frames/**`: these are temporary
|
| 206 |
+
absolute symlinks or converted JPEG copies used to feed raw images to SAM, not
|
| 207 |
+
independent annotation data. They are not dereferenced or uploaded. No raw RGB
|
| 208 |
+
is silently pulled into the archives.
|
| 209 |
+
|
| 210 |
+
Training and final QA must read the canonical `camera3/` files, not intermediate
|
| 211 |
+
`.work` results. Intermediate previews may predate a repair. Absolute filesystem
|
| 212 |
+
paths inside historical JSON/HDF5 provenance describe the build machine and are
|
| 213 |
+
not portable download paths; use `episodes.jsonl` and the relative layout above.
|
| 214 |
+
|
| 215 |
+
## 6. Masks, identities, roles, and 2D boxes
|
| 216 |
+
|
| 217 |
+
Instance PNGs contain integer IDs (`uint16`), with 0 reserved for background.
|
| 218 |
+
Load them without converting to RGB or an 8-bit image. IDs are persistent within
|
| 219 |
+
an episode. IDs 1 and 2 are task-relative, not universal semantic classes.
|
| 220 |
+
|
| 221 |
+
| Instance ID | Meaning in this four-task release |
|
| 222 |
+
|---:|---|
|
| 223 |
+
| 1 | Moving target: blue cup, cyan bowl, blue mug, or manipulated cube_a |
|
| 224 |
+
| 2 | Destination: white bowl, full dish rack, coaster, or stationary cube_b |
|
| 225 |
+
| 3 | Red apple |
|
| 226 |
+
| 4 | Stapler |
|
| 227 |
+
| 5 | Black mouse |
|
| 228 |
+
| 6 | Paper-towel roll |
|
| 229 |
+
| 7 | Tea box |
|
| 230 |
+
| 8 | Teal water bottle |
|
| 231 |
+
| 9 | Pink plastic cup |
|
| 232 |
+
| 10 | Black coffee cup |
|
| 233 |
+
| 11 | Table-tennis paddle |
|
| 234 |
+
|
| 235 |
+
Only the IDs in the episode's roster are expected. Read `objects/ids` and
|
| 236 |
+
`objects/names` from HDF5 or `manifest.json`; never assume IDs are contiguous.
|
| 237 |
+
Some names are historical catalog labels rather than literal color descriptions.
|
| 238 |
+
The coaster can appear under historical `coaster` or `patterned_coaster` names;
|
| 239 |
+
its episode-local ID and destination role are authoritative.
|
| 240 |
+
|
| 241 |
+
Role PNG values are 0 background, 1 target, 2 destination, 3 obstacle. Roles are
|
| 242 |
+
fixed within each episode in this release. This must not be assumed for the
|
| 243 |
+
future three-cup task.
|
| 244 |
+
|
| 245 |
+
Masks are **modal**: they label visible object material, not hidden surfaces.
|
| 246 |
+
The bowl/rack/coaster mask excludes the placed target; rack gaps remain background.
|
| 247 |
+
The dish-rack destination includes its small flat placement side. For cubes, ID 1
|
| 248 |
+
follows the manipulated cube and ID 2 stays on the base cube after stacking.
|
| 249 |
+
|
| 250 |
+
`boxes2d.jsonl` records frame index, filename, timestamp, camera, instance ID,
|
| 251 |
+
name, role, visibility, area, and `bbox2d_modal_xyxy`. Coordinates are
|
| 252 |
+
`[xmin, ymin, xmax, ymax]` in the original 640 x 480 image, with **inclusive**
|
| 253 |
+
maximum coordinates. Therefore width is `xmax - xmin + 1`. An invisible object's
|
| 254 |
+
JSON box is null, visibility is false, and area is zero. HDF5 represents the
|
| 255 |
+
missing modal box as `[-1, -1, -1, -1]`.
|
| 256 |
+
|
| 257 |
+
## 7. 3D geometry and validity
|
| 258 |
+
|
| 259 |
+
3D labels are estimated full oriented boxes produced by
|
| 260 |
+
`table_constrained_full_obb_v2`: RGB-D/mask evidence, table-plane fitting, reviewed
|
| 261 |
+
dimensions, and recorded geometry policies. They are **pseudo-ground-truth
|
| 262 |
+
estimates**, not motion-capture measurements or certified collision geometry.
|
| 263 |
+
|
| 264 |
+
The coordinate frame is the OpenCV camera-3 frame, in meters:
|
| 265 |
+
|
| 266 |
+
- +X right, +Y down, +Z forward.
|
| 267 |
+
- The 12D vector is center XYZ (3), full length/width/height (3), rotation-6D (6).
|
| 268 |
+
- Rotation-6D is rotation-matrix column 0 followed by column 1.
|
| 269 |
+
- Sizes are full extents, not half extents; they are not image width/height.
|
| 270 |
+
|
| 271 |
+
For a valid rotation vector `r6`, recover columns with `r1 = r6[:3]`,
|
| 272 |
+
`r2 = r6[3:]`, and `r3 = cross(r1, r2)`, then stack as matrix columns. Preserve
|
| 273 |
+
the supplied conventions when augmenting images or changing coordinate frames.
|
| 274 |
+
These annotations were not transformed into robot-base coordinates. A calibration
|
| 275 |
+
file present elsewhere is not automatically applicable to these labels.
|
| 276 |
+
|
| 277 |
+
`boxes3d.jsonl` includes validity, reason, 12D box, camera-frame corners, table
|
| 278 |
+
plane, pose provenance, and quality flags. `boxes2d_amodal.jsonl` is the projection
|
| 279 |
+
of the full 3D box, not a human-drawn hidden silhouette. It can extend outside the
|
| 280 |
+
image and has its own validity flag.
|
| 281 |
+
|
| 282 |
+
Stationary destination/obstacle poses are generally frozen from robust clear
|
| 283 |
+
measurements and carried through temporary occlusion. A valid frozen 3D box may
|
| 284 |
+
coexist with an invisible modal mask: this is intentional. Never equate 3D
|
| 285 |
+
validity with 2D visibility. Moving targets remain dynamic; insufficient evidence
|
| 286 |
+
is represented explicitly rather than fabricated. Do not fill missing labels
|
| 287 |
+
with zeros or silently train on NaNs.
|
| 288 |
+
|
| 289 |
+
Important limitations retained in the files:
|
| 290 |
+
|
| 291 |
+
- Paddle orientation remains `review_pending`/low-confidence. Some edge-on poses
|
| 292 |
+
use explicitly flagged table-support/projective inference. Filter or downweight
|
| 293 |
+
these 3D records for tasks requiring accurate orientation.
|
| 294 |
+
- In cube `d4/17`, the paddle falls; frames 35–53 are explicitly invalid for
|
| 295 |
+
unreliable falling pose. The earlier and later stable poses differ.
|
| 296 |
+
- In cup `d3/18`, the towel is displaced and is not forced into one static pose.
|
| 297 |
+
- User acceptance is based on contact sheets and targeted visual checks, not an
|
| 298 |
+
exhaustive independent pixel-by-pixel certification of every frame/object.
|
| 299 |
+
- Historical review-pending fields remain where appropriate; successful structural
|
| 300 |
+
checks do not turn uncertain geometry into exact ground truth.
|
| 301 |
+
|
| 302 |
+
## 8. Annotation HDF5 schema
|
| 303 |
+
|
| 304 |
+
Root format is `rwprep_annotation_sidecar`, schema version 1. Let T be the episode
|
| 305 |
+
frame count, O the number of objects, and H x W = 480 x 640.
|
| 306 |
+
|
| 307 |
+
| Dataset/group | Meaning / shape |
|
| 308 |
+
|---|---|
|
| 309 |
+
| `frames/indices` | Contiguous zero-based annotation frame index, T |
|
| 310 |
+
| `frames/state_indices` | Source CSV frame indices, T |
|
| 311 |
+
| `frames/timestamps` | Source recorded image/state timestamps, T |
|
| 312 |
+
| `objects/ids`, `names`, `roles` | Ordered object columns, O |
|
| 313 |
+
| `objects/dimensions_lwh_m` | Full metric dimensions, O x 3 |
|
| 314 |
+
| `objects/dimensions_status`, `orientation_status`, `geometry_confidence` | Geometry status per object |
|
| 315 |
+
| `objects/review_flags_json`, `metadata_json`, `source_json` | Complete dimension metadata/provenance |
|
| 316 |
+
| `cameras/camera3/source_rgb_filenames`, `source_depth_filenames` | Original source basenames, T |
|
| 317 |
+
| `cameras/camera3/intrinsics` | Camera matrix, distortion, depth scale, original intrinsics JSON |
|
| 318 |
+
| `cameras/camera3/instances` | uint16 label masks, T x H x W |
|
| 319 |
+
| `cameras/camera3/roles` | uint8 role masks, T x H x W |
|
| 320 |
+
| `cameras/camera3/boxes2d/modal_xyxy` | int32 inclusive boxes, T x O x 4 |
|
| 321 |
+
| `cameras/camera3/boxes2d/visible`, `area_pixels` | T x O visibility/area |
|
| 322 |
+
| `cameras/camera3/boxes3d/center_size_rot6d` | float64 boxes, T x O x 12 |
|
| 323 |
+
| `cameras/camera3/boxes3d/corners_camera_xyz_m` | T x O x 8 x 3 corners |
|
| 324 |
+
| `cameras/camera3/boxes3d/valid`, `invalid_reason`, `quality_flags_json` | T x O validity and quality |
|
| 325 |
+
| `cameras/camera3/boxes3d/pose_*` | Pose source, observed/carried status, measurement-frame provenance |
|
| 326 |
+
| `cameras/camera3/boxes2d_amodal/xyxy`, `valid`, `invalid_reason` | Projected float boxes and validity |
|
| 327 |
+
| `cameras/camera3/table_planes/*` | Per-frame plane normals, offsets, support, validity |
|
| 328 |
+
| `provenance/manifest_json`, `package_json` | Historical manifests, build paths, hashes |
|
| 329 |
+
|
| 330 |
+
Missing numeric 3D/amodal data use NaNs; consult validity before consuming them.
|
| 331 |
+
Object columns follow `objects/ids` order, **not** `object_id - 1`. HDF5 strings
|
| 332 |
+
are UTF-8; with h5py use `.asstr()` when decoded strings are needed. Fields ending
|
| 333 |
+
in `_json` contain JSON strings, not ordinary category names.
|
| 334 |
+
|
| 335 |
+
PNG/JSONL labels are canonical; sidecars are validated, compressed mirrors for
|
| 336 |
+
convenient loading. All 800 sidecars were freshly round-trip checked against their
|
| 337 |
+
canonical labels when packaging this release.
|
| 338 |
+
|
| 339 |
+
## 9. Minimal aligned reading example
|
| 340 |
+
|
| 341 |
+
After extracting matching raw data, set `raw_root` to the directory holding the
|
| 342 |
+
original task directories. No original preprocessing checkout, SAM checkpoint,
|
| 343 |
+
or GPU is needed to read the annotations.
|
| 344 |
+
|
| 345 |
+
```python
|
| 346 |
+
import json
|
| 347 |
+
from pathlib import Path
|
| 348 |
+
|
| 349 |
+
import h5py
|
| 350 |
+
import numpy as np
|
| 351 |
+
|
| 352 |
+
annotation_root = Path("annotations")
|
| 353 |
+
raw_root = Path("raw")
|
| 354 |
+
rows = [json.loads(line) for line in Path("annotation_download/episodes.jsonl").read_text().splitlines()]
|
| 355 |
+
entry = next(r for r in rows if r["episode"] == "put_cup_in_bowl/clean/2")
|
| 356 |
+
raw_path = raw_root / entry["source_episode"] / entry["source_hdf5_filename"]
|
| 357 |
+
annotation_path = annotation_root / entry["sidecar_path"]
|
| 358 |
+
|
| 359 |
+
with h5py.File(raw_path, "r") as raw, h5py.File(annotation_path, "r") as ann:
|
| 360 |
+
assert np.array_equal(raw["timestamps"][...], ann["frames/timestamps"][...])
|
| 361 |
+
assert len(raw["timestamps"]) == entry["frames"]
|
| 362 |
+
t = 0
|
| 363 |
+
source_index = int(ann["frames/state_indices"][t])
|
| 364 |
+
assert source_index == t
|
| 365 |
+
camera = ann["cameras/camera3"]
|
| 366 |
+
rgb = raw["observations/images/camera3"][source_index]
|
| 367 |
+
tcp_position = raw["observations/tcp_pos"][source_index]
|
| 368 |
+
tcp_quaternion = raw["observations/tcp_quat"][source_index]
|
| 369 |
+
gripper = raw["observations/gripper_pos"][source_index]
|
| 370 |
+
instance_mask = camera["instances"][t]
|
| 371 |
+
object_ids = ann["objects/ids"][...]
|
| 372 |
+
target_column = int(np.flatnonzero(object_ids == 1)[0])
|
| 373 |
+
target_mask = instance_mask == 1
|
| 374 |
+
target_visible = bool(camera["boxes2d/visible"][t, target_column])
|
| 375 |
+
target_box2d = camera["boxes2d/modal_xyxy"][t, target_column]
|
| 376 |
+
target_valid3d = bool(camera["boxes3d/valid"][t, target_column])
|
| 377 |
+
target_box3d = camera["boxes3d/center_size_rot6d"][t, target_column] if target_valid3d else None
|
| 378 |
+
target_flags = json.loads(camera["boxes3d/quality_flags_json"].asstr()[t, target_column])
|
| 379 |
+
```
|
| 380 |
+
|
| 381 |
+
For these recordings, source row indices are contiguous. If alignment assertions
|
| 382 |
+
fail on your downloaded raw files, stop and resolve the version/path mismatch;
|
| 383 |
+
do not silently trim, sort by unrelated filenames, or pair nearest timestamps.
|
| 384 |
+
`episodes.jsonl` includes source CSV/intrinsics/meta hashes for additional checks.
|
| 385 |
+
|
| 386 |
+
Use **state.csv order**, not every PNG in a raw directory. In particular, cup
|
| 387 |
+
`d3/1..8` contain older unreferenced captures that must be ignored. The matching
|
| 388 |
+
HDF5 and sidecar contain the intended state-aligned take.
|
| 389 |
+
|
| 390 |
+
## 10. Actions, instructions, splits, and normalization
|
| 391 |
+
|
| 392 |
+
This release is ready to serve as observations plus perception labels; it is not
|
| 393 |
+
a finished action-supervised training recipe. Raw recordings contain TCP pose,
|
| 394 |
+
joint state, and gripper state, but no separately named action dataset has been
|
| 395 |
+
established for these four tasks.
|
| 396 |
+
|
| 397 |
+
Your loader may define future observed poses, pose changes, or other trajectory
|
| 398 |
+
targets. Document the prediction horizon, reference frame, quaternion convention,
|
| 399 |
+
gripper interpretation, and terminal-frame handling. Observed states are not
|
| 400 |
+
automatically the robot's original commanded actions. Do not subtract quaternion
|
| 401 |
+
components as though they were Cartesian rotation deltas.
|
| 402 |
+
|
| 403 |
+
The release does not prescribe train/validation/test splits or normalization
|
| 404 |
+
statistics. Split by **whole episode**, keep all frames from a demonstration in
|
| 405 |
+
one split, then compute normalization using only training episodes. Decide whether
|
| 406 |
+
to hold out layouts/conditions for generalization evaluation. Add language
|
| 407 |
+
instructions explicitly in the loader; task names and object metadata are supplied,
|
| 408 |
+
but a finalized per-sample instruction dataset is not included.
|
| 409 |
+
|
| 410 |
+
Start with a small batch: verify image/mask alignment, object-column mapping,
|
| 411 |
+
box conventions, invalid-record filtering, and action-target alignment before
|
| 412 |
+
large-scale training. Rendered contact sheets are QA tools, not model observations.
|
| 413 |
+
Keep HDF5 handles worker-local if using multiprocessing dataloaders.
|
| 414 |
+
|
| 415 |
+
## 11. Review, provenance, and release contents
|
| 416 |
+
|
| 417 |
+
Open `camera3/contact_sheet.jpg` for masks plus modal 2D and
|
| 418 |
+
`camera3/contact_sheet3d.jpg` for projected 3D. Full-resolution sampled overlays
|
| 419 |
+
are in `review_samples/`; RGB/point-cloud diagnostics are in `diagnostics3d/`.
|
| 420 |
+
Review sampling is compact (up to 16 frames per camera, normally eight uniform
|
| 421 |
+
frames plus selected events). There are no canonical full-frame overlay videos,
|
| 422 |
+
MP4 reviewers, or HTML reviewers.
|
| 423 |
+
|
| 424 |
+
This release includes the 63 user-approved replacements promoted on 2026-09-10:
|
| 425 |
+
17 cup, 18 mug, and 28 cube episodes. They already replace the corresponding
|
| 426 |
+
canonical folders; **do not apply another repair overlay after extraction**.
|
| 427 |
+
`metadata/user_repairs_20260910_promotion.json` and the accompanying note retain
|
| 428 |
+
the promotion provenance. Old backup paths named there are historical, not
|
| 429 |
+
additional files you need to download.
|
| 430 |
+
|
| 431 |
+
Historic timing CSVs/wave atlases outside the four task directories are not used
|
| 432 |
+
as authoritative current QA; per-episode canonical contact sheets include the
|
| 433 |
+
accepted repairs. Rejected template-stamped references, superseded backups, raw
|
| 434 |
+
datasets, environment credentials, and model checkpoints are not part of this
|
| 435 |
+
release.
|
| 436 |
+
|
| 437 |
+
The two future tasks will be released separately after completion/review. Pin a
|
| 438 |
+
repository revision if your experiment must remain tied to this four-task version.
|
| 439 |
+
|
| 440 |
+
## 12. Access and licensing
|
| 441 |
+
|
| 442 |
+
The repository is public for download. Public access is not itself a license grant.
|
| 443 |
+
No license is asserted by this annotation card; confirm permitted use and
|
| 444 |
+
redistribution with the dataset owners and check the source dataset's terms.
|
| 445 |
+
Do not assume a permissive license from the availability of the files.
|