HBOrtiz commited on
Commit
9d2d144
·
verified ·
1 Parent(s): c9ee998

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +104 -0
  2. _stats.json +12 -0
  3. data.tar.zst +3 -0
  4. manifest.parquet +3 -0
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # eval3_objectvla_vl_pairs
2
+
3
+ ObjectVLA-style vision-language co-training data for the Eval 3 face/celebrity
4
+ identification task. Companion dataset to
5
+ [`HBOrtiz/so101_eval3_aug_v3_200celebs`](https://huggingface.co/datasets/HBOrtiz/so101_eval3_aug_v3_200celebs).
6
+
7
+ ## Contents
8
+
9
+ - **`manifest.parquet`** — 176 670 VL pairs (one row per (frame, portrait, caption_type)).
10
+ - **`data.tar.zst`** — 1.7 GB compressed archive containing:
11
+ - `images/chunk-{000..003}/*.jpg` — 29 445 wrist-cam frames (480 × 640, 3 sampled per episode at 20% / 50% / 80%).
12
+ - `references/<episode>__ref.jpg` — 9 815 reference photos (480 × 480, one per episode — the "what the target should look like" cue).
13
+ Extract with `tar --zstd -xf data.tar.zst` (creates the two subdirs).
14
+ - **`_stats.json`** — dataset statistics + skip counters.
15
+
16
+ ## Manifest schema
17
+
18
+ | column | type | meaning |
19
+ |---|---|---|
20
+ | `image_path` | str | path to wrist-cam JPEG (e.g. `images/chunk-001/quick_lecun_LSO_ep01_..._var00__f0107.jpg`) |
21
+ | `reference_image_path` | str | path to reference JPEG (e.g. `references/quick_lecun_LSO_ep01_..._var00__ref.jpg`) |
22
+ | `prompt` | str | the input prompt |
23
+ | `target` | str | the expected completion |
24
+ | `bbox_xyxy_norm` | list[float] | bounding box as `[x1, y1, x2, y2]` normalized to [0, 1] in (W, H) of the wrist-cam image |
25
+ | `celeb_name` | str | celebrity display name (e.g. `"Yann LeCun"`) |
26
+ | `celeb_slug` | str | slug form (e.g. `"yann_lecun"`) |
27
+ | `caption_type` | str | `"location_explicit"` or `"qa_grounded"` |
28
+ | `episode` | str | source episode in the robot dataset |
29
+ | `frame_idx` | int | frame index in the source mp4 |
30
+ | `pid` | int | portrait id (0, 1, or 2) |
31
+
32
+ ## Two camera streams per sample
33
+
34
+ Mirroring the original Eval 3 robot dataset's two-camera setup:
35
+
36
+ - **`image_path`** is the **wrist-cam** view — 480 × 640 of the workspace with 3 visible printed portraits. This is the perception domain the robot acts in.
37
+ - **`reference_image_path`** is the **reference** view — 480 × 480 of the target celeb's photo, the same image for all frames of a given episode (it's a constant-frame video in the source robot dataset).
38
+
39
+ The bbox in `bbox_xyxy_norm` is the **paper-region bbox in the wrist-cam image** (where the target portrait sits on the table), NOT the reference image (which is whole-frame). Use the reference image as auxiliary visual context, not for bbox grounding.
40
+
41
+ ## Two caption types
42
+
43
+ Per visible portrait per frame we emit one row of each type (so 6 rows per
44
+ frame for 3 visible portraits):
45
+
46
+ **`location_explicit`** — model is asked what's in the image, expected to emit name + bbox:
47
+ ```
48
+ prompt: "What is in this image?"
49
+ target: "The printed photo of Barack Obama is at [0.06, 0.43, 0.41, 0.90]."
50
+ ```
51
+
52
+ **`qa_grounded`** — model is given a bbox in the prompt, expected to name the person there:
53
+ ```
54
+ prompt: "Who is in the printed photo at [0.06, 0.43, 0.41, 0.90]?"
55
+ target: "Barack Obama"
56
+ ```
57
+
58
+ ## Why this format
59
+
60
+ Following the ObjectVLA recipe ([arxiv 2502.19250](https://arxiv.org/abs/2502.19250) §3),
61
+ the bbox is **whole-object** (the printed portrait rectangle), computed
62
+ from the augmentation pipeline's cached `portrait_corners.json` (no new
63
+ face-detection inference required). Loose-crop / whole-object boxes
64
+ empirically outperform tight face crops for identity discrimination
65
+ ([Banerjee 2022](https://arxiv.org/abs/2208.02991), LFW ablations).
66
+
67
+ ## Stats
68
+
69
+ - 192 unique celebrities
70
+ - 9 815 source episodes (of 9 842 in the robot dataset — 27 with missing corners metadata)
71
+ - 29 445 sampled wrist-cam frames (3 per episode, at 20% / 50% / 80% time fractions)
72
+ - 9 815 reference frames (1 per episode — constant-frame video, single sample taken)
73
+ - 176 670 VL pairs (50 / 50 split between `location_explicit` and `qa_grounded`)
74
+
75
+ ## Intended use
76
+
77
+ Mix into Pi0.5 fine-tuning at a 10:1 robot:VL batch ratio per
78
+ [ObjectVLA](https://arxiv.org/abs/2502.19250). See
79
+ [`eval_3/tracks/TRACK_OBJECTVLA.md`](https://github.com/Ace3Z/LeMonkey/blob/main/eval_3/tracks/TRACK_OBJECTVLA.md)
80
+ in the source repo for the full training recipe.
81
+
82
+ ## Loading example
83
+
84
+ ```python
85
+ import subprocess
86
+ from huggingface_hub import hf_hub_download
87
+ import pyarrow.parquet as pq
88
+
89
+ # Download + extract the image archive
90
+ tar = hf_hub_download("HBOrtiz/eval3_objectvla_vl_pairs",
91
+ "data.tar.zst", repo_type="dataset")
92
+ subprocess.run(["tar", "--zstd", "-xf", tar]) # creates images/ and references/
93
+
94
+ # Load manifest
95
+ manifest = pq.read_table(hf_hub_download(
96
+ "HBOrtiz/eval3_objectvla_vl_pairs", "manifest.parquet", repo_type="dataset"
97
+ )).to_pandas()
98
+
99
+ # Sample one row
100
+ row = manifest.iloc[0]
101
+ print(row.prompt, "→", row.target)
102
+ print(f"wrist-cam: {row.image_path}")
103
+ print(f"reference: {row.reference_image_path}")
104
+ ```
_stats.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n_records": 176670,
3
+ "n_episodes_processed": 9815,
4
+ "skipped_no_video": 0,
5
+ "skipped_no_corners": 0,
6
+ "skipped_no_pid_map": 0,
7
+ "skipped_frame_decode": 0,
8
+ "skipped_no_corners_for_pid": 0,
9
+ "n_unique_celebs": 192,
10
+ "n_unique_images": 29445,
11
+ "wall_seconds": 68.9789981842041
12
+ }
data.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e889f79656f76d2aa22a23f09d6c27324a9b161dded3cbd6681f7e7e8ecab11
3
+ size 1723187307
manifest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9837a293874eae3baad2dd872a1e810e560140fcaebeaa64e474936f963a4a69
3
+ size 1552308