cleanup: splits_verification.md
Browse files- splits_verification.md +157 -158
splits_verification.md
CHANGED
|
@@ -1,158 +1,157 @@
|
|
| 1 |
-
# Splits Verification Report
|
| 2 |
-
|
| 3 |
-
This report is the proof artifact for `splits.csv` in this dataset repo. It
|
| 4 |
-
documents every check that was run when remapping the original asai2
|
| 5 |
-
single-cu3s splits CSV onto the merged-file layout shipped here.
|
| 6 |
-
|
| 7 |
-
All numbers below are reproducible — run the scripts in `D:/hf_upload_staging/`:
|
| 8 |
-
- `build_index.py` — parses `.info` files into `frame_index.csv`
|
| 9 |
-
- `build_splits.py` — joins the asai2 CSV against the index to emit `splits.csv`
|
| 10 |
-
- `build_per_subfolder_coco.py` — slices the canonical day-root COCO into per-subfolder JSONs
|
| 11 |
-
- `roundtrip_check.py` — opens 44 sampled merged cu3s frames and asserts on-disk frame name matches the predicted camera frame number
|
| 12 |
-
|
| 13 |
-
## Inputs (with sha256)
|
| 14 |
-
|
| 15 |
-
| File | sha256 |
|
| 16 |
-
|---|---|
|
| 17 |
-
| `
|
| 18 |
-
| `
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
- Keys in
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
| 48 |
-
|
|
| 49 |
-
| day2 | 2026_03_03_11-
|
| 50 |
-
| day2 | 2026_03_03_11-
|
| 51 |
-
| day2 |
|
| 52 |
-
| day2 | 2026_03_03_13-58-
|
| 53 |
-
| day2 |
|
| 54 |
-
|
|
| 55 |
-
| day3 | 2026_03_10_10-
|
| 56 |
-
| day3 |
|
| 57 |
-
| day3 |
|
| 58 |
-
| day3 |
|
| 59 |
-
| day3 |
|
| 60 |
-
|
|
| 61 |
-
| day4 | 2026_03_17_11-
|
| 62 |
-
| day4 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
| 80 |
-
|
|
| 81 |
-
| day2 |
|
| 82 |
-
|
|
| 83 |
-
| day3 | 10-
|
| 84 |
-
| day3 |
|
| 85 |
-
| day3 |
|
| 86 |
-
| day3 |
|
| 87 |
-
|
|
| 88 |
-
| day4 | 11-
|
| 89 |
-
| day4 |
|
| 90 |
-
|
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
|
| 101 |
-
|
|
| 102 |
-
|
|
| 103 |
-
|
|
| 104 |
-
|
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
| 112 |
-
|
|
| 113 |
-
|
|
| 114 |
-
|
|
| 115 |
-
|
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
-
|
| 139 |
-
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
|
| 145 |
-
|--
|
| 146 |
-
| day2 / 2026_03_03_15-25-02 |
|
| 147 |
-
|
|
| 148 |
-
|
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
and no split is altered.
|
|
|
|
| 1 |
+
# Splits Verification Report
|
| 2 |
+
|
| 3 |
+
This report is the proof artifact for `splits.csv` in this dataset repo. It
|
| 4 |
+
documents every check that was run when remapping the original asai2
|
| 5 |
+
single-cu3s splits CSV onto the merged-file layout shipped here.
|
| 6 |
+
|
| 7 |
+
All numbers below are reproducible — run the scripts in `D:/hf_upload_staging/`:
|
| 8 |
+
- `build_index.py` — parses `.info` files into `frame_index.csv`
|
| 9 |
+
- `build_splits.py` — joins the asai2 CSV against the index to emit `splits.csv`
|
| 10 |
+
- `build_per_subfolder_coco.py` — slices the canonical day-root COCO into per-subfolder JSONs
|
| 11 |
+
- `roundtrip_check.py` — opens 44 sampled merged cu3s frames and asserts on-disk frame name matches the predicted camera frame number
|
| 12 |
+
|
| 13 |
+
## Inputs (with sha256)
|
| 14 |
+
|
| 15 |
+
| File | sha256 |
|
| 16 |
+
|---|---|
|
| 17 |
+
| `frame_index.csv` (derived from `.info` files) | `a9ded98b39426cba1dbfd93f025a868d93bf36adba66998151eec231250e0c95` |
|
| 18 |
+
| `splits.csv` (emitted) | `e12b40aaae4d63853b489b23b5178a238ee85412b83ee278b7e4ee4ad954f84f` |
|
| 19 |
+
|
| 20 |
+
## 1. Coverage — every asai2 row maps to exactly one merged-file row
|
| 21 |
+
|
| 22 |
+
- asai2 CSV rows: **1136**
|
| 23 |
+
- frame_index.csv rows: **1136**
|
| 24 |
+
- Keys in index but not in asai2: **0**
|
| 25 |
+
- Keys in asai2 but not in index: **0**
|
| 26 |
+
|
| 27 |
+
✅ Coverage exact, no missing or extra rows.
|
| 28 |
+
|
| 29 |
+
## 2. Per-day frame counts
|
| 30 |
+
|
| 31 |
+
| Day | Subfolders | Saved frames (info → index) | Canonical day-root COCO images | asai2 CSV image_id range |
|
| 32 |
+
|---|---|---|---|---|
|
| 33 |
+
| day2 | 6 | 384 | 384 | 0..383 |
|
| 34 |
+
| day3 | 6 | 492 | 492 | 0..491 |
|
| 35 |
+
| day4 | 3 | 260 | 260 | 0..259 |
|
| 36 |
+
| **Total** | **15** | **1,136** | **1,136** | **—** |
|
| 37 |
+
|
| 38 |
+
Matches `whitepaper/dataset_summary.json` exactly.
|
| 39 |
+
|
| 40 |
+
## 3. Per-subfolder coverage (15 / 15 reconciled)
|
| 41 |
+
|
| 42 |
+
For each subfolder, the saved-frame count in the `.info` file matches the
|
| 43 |
+
`images` count in the pre-existing per-subfolder JSON (where one exists) and
|
| 44 |
+
fully accounts for the day's saved frames when summed in time order.
|
| 45 |
+
|
| 46 |
+
| Day | Subfolder | Saved frames | Pre-existing JSON imgs | global_id range |
|
| 47 |
+
|---|---|---:|---:|---|
|
| 48 |
+
| day2 | 2026_03_03_11-11-01 | 2 | (none, normal) | 0..1 |
|
| 49 |
+
| day2 | 2026_03_03_11-31-31 | 17 | (none, normal) | 2..18 |
|
| 50 |
+
| day2 | 2026_03_03_11-38-39 | 81 | (none, normal) | 19..99 |
|
| 51 |
+
| day2 | 2026_03_03_13-58-04_1 | 96 | (none, normal) | 100..195 |
|
| 52 |
+
| day2 | 2026_03_03_13-58-04_2 | 136 | 136 | 196..331 |
|
| 53 |
+
| day2 | 2026_03_03_15-25-02 | 52 | 52 | 332..383 |
|
| 54 |
+
| day3 | 2026_03_10_10-17-20 | 84 | 84 | 0..83 |
|
| 55 |
+
| day3 | 2026_03_10_10-58-55 | 36 | 36 | 84..119 |
|
| 56 |
+
| day3 | 2026_03_10_11-30-45 | 120 | (none, normal) | 120..239 |
|
| 57 |
+
| day3 | 2026_03_10_12-00-18 | 40 | 40 | 240..279 |
|
| 58 |
+
| day3 | 2026_03_10_14-32-01 | 92 | 92 | 280..371 |
|
| 59 |
+
| day3 | 2026_03_10_15-12-17 | 120 | 120 | 372..491 |
|
| 60 |
+
| day4 | 2026_03_17_11-11-50 | 80 | 80 | 0..79 |
|
| 61 |
+
| day4 | 2026_03_17_11-41-54 | 80 | 80 | 80..159 |
|
| 62 |
+
| day4 | 2026_03_17_14-38-58 | 100 | 100 | 160..259 |
|
| 63 |
+
|
| 64 |
+
✅ Every pre-existing per-subfolder JSON's image count equals the count of
|
| 65 |
+
saved frames in the same subfolder's `.info` file.
|
| 66 |
+
|
| 67 |
+
Subfolders without a JSON (`*11-11-01`, `*11-31-31`, `*11-38-39`,
|
| 68 |
+
`*13-58-04_1`, `*11-30-45`) are **normal/background captures** (no foreign
|
| 69 |
+
objects present). They still contribute frames to the splits via the asai2 CSV
|
| 70 |
+
with `has_annotation=0`.
|
| 71 |
+
|
| 72 |
+
## 4. Annotation-equivalence — per-subfolder slice = canonical day-root slice
|
| 73 |
+
|
| 74 |
+
For each subfolder where a pre-existing per-subfolder JSON exists, the regenerated
|
| 75 |
+
`<subfolder>.json` (sliced from the canonical day-root COCO with image_ids rebased)
|
| 76 |
+
agrees on three independent measures:
|
| 77 |
+
|
| 78 |
+
| Day | Subfolder | Pre-existing anns | Generated anns | Match | Per-class multiset match |
|
| 79 |
+
|---|---|---:|---:|---|---|
|
| 80 |
+
| day2 | 13-58-04_2 | 276 | 276 | ✅ | ✅ |
|
| 81 |
+
| day2 | 15-25-02 | 92 | 92 | ✅ | ✅ |
|
| 82 |
+
| day3 | 10-17-20 | 84 | 84 | ✅ | ✅ |
|
| 83 |
+
| day3 | 10-58-55 | 36 | 36 | ✅ | ✅ |
|
| 84 |
+
| day3 | 12-00-18 | 80 | 80 | ✅ | ✅ |
|
| 85 |
+
| day3 | 14-32-01 | 88 | 88 | ✅ | ✅ |
|
| 86 |
+
| day3 | 15-12-17 | 360 | 360 | ✅ | ✅ |
|
| 87 |
+
| day4 | 11-11-50 | 260 | 260 | ✅ | ✅ |
|
| 88 |
+
| day4 | 11-41-54 | 120 | 120 | ✅ | ✅ |
|
| 89 |
+
| day4 | 14-38-58 | 140 | 140 | ✅ | ✅ |
|
| 90 |
+
| **Total** | | **1,536** | **1,536** | ✅ | ✅ |
|
| 91 |
+
|
| 92 |
+
The 1,536 figure matches `whitepaper/dataset_summary.json["object_counts"]` exactly.
|
| 93 |
+
|
| 94 |
+
Category-id block in every per-subfolder JSON is byte-identical to the canonical
|
| 95 |
+
day-root: `0=Unlabeled, 1=stem_k, 2=stone, 3=alu_shard, 4=blue_paper, 5=white_paper, 6=fly, 7=rubber`.
|
| 96 |
+
|
| 97 |
+
## 5. Split-preservation — distribution identical to asai2
|
| 98 |
+
|
| 99 |
+
| Split | asai2 row count | merged splits.csv row count | match |
|
| 100 |
+
|---|---:|---:|---|
|
| 101 |
+
| train | 808 | 808 | ✅ |
|
| 102 |
+
| val | 148 | 148 | ✅ |
|
| 103 |
+
| test | 180 | 180 | ✅ |
|
| 104 |
+
| **Total** | **1136** | **1136** | ✅ |
|
| 105 |
+
|
| 106 |
+
Ratio (71.13 / 13.03 / 15.85 %) matches whitepaper §"Splits".
|
| 107 |
+
|
| 108 |
+
### Per-(day, split) annotated-frame counts
|
| 109 |
+
|
| 110 |
+
| | train | val | test |
|
| 111 |
+
|---|---:|---:|---:|
|
| 112 |
+
| day2 | 136 | 24 | 28 |
|
| 113 |
+
| day3 | 228 | 52 | 48 |
|
| 114 |
+
| day4 | 136 | 8 | 36 |
|
| 115 |
+
| **All** | **500** | **84** | **112** |
|
| 116 |
+
|
| 117 |
+
(asai2 and merged splits.csv produce identical values for every cell.)
|
| 118 |
+
|
| 119 |
+
## 6. No-leakage — no group_id straddles two splits
|
| 120 |
+
|
| 121 |
+
`splits.csv` preserves the asai2 `group_id` column (4-frame lighting-quad
|
| 122 |
+
grouping, `<day>_g<NNNNNN>`).
|
| 123 |
+
|
| 124 |
+
- Total distinct group_ids: 284
|
| 125 |
+
- Group_ids whose rows span more than one split: **0**
|
| 126 |
+
|
| 127 |
+
✅ No information leakage across the train/val/test boundary at the
|
| 128 |
+
lighting-quad level.
|
| 129 |
+
|
| 130 |
+
## 7. Round-trip — physical-frame check via cuvis SDK
|
| 131 |
+
|
| 132 |
+
44 frames (≈3 per subfolder: first, middle, last) sampled across all 15
|
| 133 |
+
merged cu3s files. For each, opened the cu3s with `cuvis.SessionFile`,
|
| 134 |
+
fetched `get_measurement(local_image_id)`, and confirmed `measurement.name`
|
| 135 |
+
ends in the same camera frame number that the index predicts.
|
| 136 |
+
|
| 137 |
+
- Sampled frames: **44**
|
| 138 |
+
- Passes: **44**
|
| 139 |
+
- Failures: **0**
|
| 140 |
+
|
| 141 |
+
Sample-of-the-samples:
|
| 142 |
+
|
| 143 |
+
| day / subfolder | local_image_id | global_image_id | expected camera frame | mesu.name |
|
| 144 |
+
|---|---:|---:|---:|---|
|
| 145 |
+
| day2 / 2026_03_03_15-25-02 | 0 | 332 | 152 | `Auto_000_0152` |
|
| 146 |
+
| day2 / 2026_03_03_15-25-02 | 26 | 358 | … | `Auto_000_…` (✓) |
|
| 147 |
+
| day3 / 2026_03_10_15-12-17 | 119| 491 | … | `Auto_000_…` (✓) |
|
| 148 |
+
| day4 / 2026_03_17_11-11-50 | 0 | 0 | 1992 | `Auto_000_1992` |
|
| 149 |
+
|
| 150 |
+
(Full record: `roundtrip_report.json`.)
|
| 151 |
+
|
| 152 |
+
## Result
|
| 153 |
+
|
| 154 |
+
All seven checks pass without exception. `splits.csv` is verified to be a
|
| 155 |
+
**byte-faithful** remapping of the asai2 single-cu3s split onto this
|
| 156 |
+
dataset's merged-file layout. No frame is lost, no annotation is moved,
|
| 157 |
+
and no split is altered.
|
|
|