VQA README: shared page layout
Browse files- vqa/README.md +144 -213
vqa/README.md
CHANGED
|
@@ -1,226 +1,127 @@
|
|
| 1 |
# VQA ground truth
|
| 2 |
|
| 3 |
-
Machine-generated
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
## Schema
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
published fact turned into a row), not the final ~36K benchmark sample** --
|
| 26 |
-
downstream sampling/capping for a benchmark release is a separate step not
|
| 27 |
-
yet performed.
|
| 28 |
-
|
| 29 |
-
| Config | Rows | SHA-256 |
|
| 30 |
-
|---|---|---|
|
| 31 |
-
| `incontext_mos_attribute_bbox.parquet` | 317,873 | `86a334247198848390c158537a235937dda2d386c022d56ede3bf135d798a94b` |
|
| 32 |
-
| `incontext_ego_attribute_bbox.parquet` | 113,193 | `398565fc10b58f5beec3f237c5efb8cf0fd18123fed2782f6ab1c15561a9c186` |
|
| 33 |
-
| `incontext_mos_spatial_bbox.parquet` | 318,017 | `6652cba3b471166e4f2dd366d9434495e63a7b80b5271cca61eeceb2ac0ec156` |
|
| 34 |
-
|
| 35 |
-
Full validation results, the exact-string-ontology decision for function
|
| 36 |
-
aliases, and a per-file manifest (path/bytes/rows/sha256) live under
|
| 37 |
-
`metadata/incontext_v1/`: `VALIDATION_REPORT.json`,
|
| 38 |
-
`FUNCTION_ALIAS_DECISION.md`, `SHA256SUMS`, `RELEASE_MANIFEST.json`.
|
| 39 |
-
|
| 40 |
-
### The two-image contract
|
| 41 |
-
|
| 42 |
-
Every row asks a question about a pair of images, not one:
|
| 43 |
-
|
| 44 |
-
- **Image 1** (`reference_image`) -- a deterministic crop of a single
|
| 45 |
-
reference object, taken from that object's SOS (single-object-scan)
|
| 46 |
-
capture. This is what the question means by "the object shown in Image 1".
|
| 47 |
-
- **Image 2** (`target_image`) -- an existing MOS or Ego target frame from
|
| 48 |
-
the single-image configs above (same `scene_id`/`kind`/`phase`/`frame`
|
| 49 |
-
semantics as `attribute.parquet`/`spatial_bbox.parquet`).
|
| 50 |
-
- **`answer_bbox`** is always `[xmin, ymin, xmax, ymax]` in **Image 2's own
|
| 51 |
-
original pixel coordinates** (`img_w`/`img_h` describe Image 2, not
|
| 52 |
-
Image 1) -- never Image 1's crop coordinates, regardless of question type.
|
| 53 |
-
|
| 54 |
-
### Question types
|
| 55 |
-
|
| 56 |
-
Five general (attribute-transfer) types, split across the two attribute
|
| 57 |
-
Parquets by `kind`:
|
| 58 |
-
|
| 59 |
-
| `type` | Question |
|
| 60 |
-
|---|---|
|
| 61 |
-
| `inctx_attr_single_color` | Which object in Image 2 has the same color as the object shown in Image 1? |
|
| 62 |
-
| `inctx_attr_single_material` | Which object in Image 2 is made of the same material as the object shown in Image 1? |
|
| 63 |
-
| `inctx_attr_single_function` | Which object in Image 2 is used for the same purpose as the object shown in Image 1? |
|
| 64 |
-
| `inctx_attr_composition` | Which object in Image 2 has the same material and purpose as the object shown in Image 1? |
|
| 65 |
-
| `inctx_attr_odd_one_out` | Which object in Image 2 is NOT made of the same material as the object shown in Image 1? |
|
| 66 |
-
|
| 67 |
-
One spatial type, `mos`-only (inherits the depth-map limitation of the
|
| 68 |
-
single-image spatial configs), in its own Parquet:
|
| 69 |
-
|
| 70 |
-
| `type` | Question |
|
| 71 |
-
|---|---|
|
| 72 |
-
| `inctx_spatial_farthest` | Which object in Image 2 is farthest from the object shown in Image 1? |
|
| 73 |
-
|
| 74 |
-
### Reference-selection semantics: Option B vs. Option A
|
| 75 |
-
|
| 76 |
-
The five general types use **Option B**: Image 1 shows a *different* object
|
| 77 |
-
from the answer, one that happens to share the relevant attribute value(s)
|
| 78 |
-
with the correct answer object in Image 2. A cross-modal, multi-attribute
|
| 79 |
-
ambiguity gate rejects any candidate reference if *any* of its other
|
| 80 |
-
(non-question) attribute values are also independently owned by a different
|
| 81 |
-
object visible in Image 2 -- not just the intended value -- so the question
|
| 82 |
-
has exactly one defensible answer. Reference selection is deterministic
|
| 83 |
-
(sha256-ranked over eligible candidates), not random.
|
| 84 |
-
|
| 85 |
-
`inctx_spatial_farthest` uses **Option A**: Image 1 shows the *exact same*
|
| 86 |
-
object that the question's "farthest from" anchor refers to -- there is no
|
| 87 |
-
attribute-sharing indirection, and the reference object's presence in
|
| 88 |
-
Image 2 is expected and intentional (it is the geometric anchor the
|
| 89 |
-
distance is measured from), not a violation of any visibility rule.
|
| 90 |
-
|
| 91 |
-
### `source_fact_id` vs. `source_sample_id`
|
| 92 |
-
|
| 93 |
-
Every in-context row carries `source_sample_id`, which identifies the exact
|
| 94 |
-
row in the published single-image Parquet (`attribute.parquet` for the
|
| 95 |
-
general types, `spatial_bbox.parquet` for the spatial type) that this row
|
| 96 |
-
was **1:1 paired against** -- same `scene_id`/`kind`/`phase`/`frame`/`type`/
|
| 97 |
-
target object/`answer_bbox` as that published row. This is a strict,
|
| 98 |
-
row-level join key: every in-context row corresponds to exactly one real,
|
| 99 |
-
already-published fact placed in exactly the same frame.
|
| 100 |
-
|
| 101 |
-
During development, a second, looser identifier -- `source_fact_id`,
|
| 102 |
-
`(scene, kind, phase, type, target_object, normalized attribute value(s))`
|
| 103 |
-
without the frame/bbox scoping -- was used only for auditing (it matches
|
| 104 |
-
whenever a fact was published *somewhere* in the phase, regardless of
|
| 105 |
-
frame, useful for confirming a fact is real before checking whether it also
|
| 106 |
-
landed in this exact frame). It is not a persisted column in these
|
| 107 |
-
Parquets; the frame-exact `source_sample_id` is the only join key the
|
| 108 |
-
release itself carries.
|
| 109 |
-
|
| 110 |
-
### Canonicalization (matching/ambiguity only, never eligibility or stored fields)
|
| 111 |
-
|
| 112 |
-
The ambiguity gate treats a small set of attribute-value spellings as
|
| 113 |
-
identical when deciding whether a reference is safe to use, without ever
|
| 114 |
-
altering what is actually stored: `question`, `source_question`,
|
| 115 |
-
`attribute_value`, `attribute_material`, `attribute_function`, and
|
| 116 |
-
`source_sample_id` always preserve the original published text/fact
|
| 117 |
-
verbatim.
|
| 118 |
-
|
| 119 |
-
- **Color:** `gray` / `grey` are treated as the same color.
|
| 120 |
-
- **Compound materials:** slash- or ampersand-joined compound values (e.g.
|
| 121 |
-
`"wood/metal"`) are decomposed into their atomic materials before
|
| 122 |
-
ambiguity is checked, so a reference is rejected if *any* atomic
|
| 123 |
-
component conflicts with another visible object -- a conservative rule
|
| 124 |
-
that only rejects more candidates, never fewer.
|
| 125 |
-
- **Function infinitive variants:** `to drink`/`drink`, `to eat`/`eat`,
|
| 126 |
-
`to snack`/`snack` are treated as the same function.
|
| 127 |
-
|
| 128 |
-
### Known, quantified, source-inherited semantic duplicates (426 rows)
|
| 129 |
-
|
| 130 |
-
Because canonicalization is never applied to stored fields, and because the
|
| 131 |
-
published dataset itself independently records some facts twice under two
|
| 132 |
-
literal spellings (e.g. one published row says `"used for drink"`, a
|
| 133 |
-
different published row for the same object says `"used for to drink"`),
|
| 134 |
-
426 rows in `incontext_mos_attribute_bbox.parquet` (0.13% of 317,873; 0 in
|
| 135 |
-
the ego file) end up describing the same Image1-reference/Image2-target/
|
| 136 |
-
frame combination twice, differing only in which spelling of the same
|
| 137 |
-
function was published. Each such row is still a correct, independent 1:1
|
| 138 |
-
pairing to a real distinct published row -- dropping either one would
|
| 139 |
-
break exact source-row pairing, which is treated as the stricter
|
| 140 |
-
guarantee -- so both are kept. Full breakdown, the exact duplicate keys,
|
| 141 |
-
and the "why keep both" reasoning are in
|
| 142 |
-
`metadata/incontext_v1/FUNCTION_ALIAS_DECISION.md`.
|
| 143 |
-
|
| 144 |
-
### Not yet included
|
| 145 |
-
|
| 146 |
-
**Ego has no in-context spatial config, and no normal (single-image) ego
|
| 147 |
-
spatial config either** -- both are absent from this release, not just
|
| 148 |
-
this v1 in-context slice. This mirrors the existing single-image
|
| 149 |
-
limitation noted above (spatial configs are `mos`-only because ego frames
|
| 150 |
-
have no depth map); it is called out again here explicitly since it is
|
| 151 |
-
easy to assume in-context spatial covers both `kind`s the way the general
|
| 152 |
-
attribute-transfer types do.
|
| 153 |
-
|
| 154 |
-
### Provenance
|
| 155 |
-
|
| 156 |
-
- Generator code: commit `fbf2fd03cd9972d159ac954cfed8fd194deb8d87` on
|
| 157 |
-
branch `itay/vqa-incontext` of the code repo (same repo/location as the
|
| 158 |
-
single-image generator referenced above).
|
| 159 |
-
- Every image locator (`target_image`, `reference_image`) is pinned to the
|
| 160 |
-
immutable Hugging Face dataset revision
|
| 161 |
-
`93e31d378f1f98eca18a7aa01a2279c9f332440c` (a resolved commit SHA, not
|
| 162 |
-
the mutable `main` branch name), so assets referenced by these rows
|
| 163 |
-
cannot change out from under a consumer.
|
| 164 |
-
|
| 165 |
-
### Validation: exhaustive vs. sampled
|
| 166 |
-
|
| 167 |
-
Most correctness checks in `VALIDATION_REPORT.json` are **exhaustive**
|
| 168 |
-
(run over every row in the release, not a sample): bbox validity, identity/
|
| 169 |
-
reference-visibility violations, duplicate sample IDs, semantic-duplicate
|
| 170 |
-
detection (both raw-string and function-alias-normalized keys), reference
|
| 171 |
-
asset availability and crop-hash matches, pinned-revision checks,
|
| 172 |
-
source-row pairing against the published Parquets, and per-frame/
|
| 173 |
-
centered-frame coverage across all MOS+Ego cells. The reference-object-not-
|
| 174 |
-
visible-in-Image-2 check is also exhaustive and full-100-scene (not
|
| 175 |
-
sampled), covering every general row; it intentionally does not apply to
|
| 176 |
-
`inctx_spatial_farthest`, whose Image-1 identity is the anchor and is
|
| 177 |
-
*expected* to be visible in Image 2.
|
| 178 |
-
|
| 179 |
-
The one check that is **sampled, not exhaustive**: an independent
|
| 180 |
-
recomputation of the raw farthest-object distance geometry for
|
| 181 |
-
`inctx_spatial_farthest` against a subset of scenes, used as a spot-check
|
| 182 |
-
in addition to (not instead of) the exhaustive 1:1 row-for-row equality
|
| 183 |
-
proof against the published `spatial_farthest` rows in `spatial_bbox.parquet`
|
| 184 |
-
(every one of the 318,017 rows in `incontext_mos_spatial_bbox.parquet`
|
| 185 |
-
corresponds exactly to one published `spatial_farthest` row -- that
|
| 186 |
-
equality check itself is exhaustive; only the independent from-scratch
|
| 187 |
-
geometry recheck used as a secondary sanity check was sampled).
|
| 188 |
-
|
| 189 |
-
### Schema (obtained programmatically via `pyarrow.parquet.read_schema`)
|
| 190 |
-
|
| 191 |
-
All three files share the same top-level column set; the general
|
| 192 |
-
attribute files leave `evidence`/`_dedup_key` null-typed (unused) and
|
| 193 |
-
populate `attribute_kind`/`attribute_value`/`attribute_material`/
|
| 194 |
-
`attribute_function`, while the spatial file does the reverse (populates a
|
| 195 |
-
structured `evidence`, leaves the attribute_* columns null-typed) and adds
|
| 196 |
-
an internal `_dedup_key` column (build-time cap bookkeeping, not meaningful
|
| 197 |
-
to consumers).
|
| 198 |
|
| 199 |
-
```
|
| 200 |
scene_id: string
|
| 201 |
kind: string
|
| 202 |
-
phase: double
|
| 203 |
frame: string
|
| 204 |
img_w: int64
|
| 205 |
img_h: int64
|
| 206 |
type: string
|
| 207 |
question: string
|
| 208 |
answer: string
|
| 209 |
-
answer_bbox: list<
|
| 210 |
-
evidence:
|
| 211 |
-
|
| 212 |
-
distances_2d_px: struct<<catalog object name>: double, ...> (one entry
|
| 213 |
-
per published-catalog object name present in the scene, ~70 keys),
|
| 214 |
-
reference: string
|
| 215 |
-
>
|
| 216 |
schema_version: string
|
| 217 |
generator_version: string
|
| 218 |
dataset_revision: string
|
| 219 |
sample_id: string
|
| 220 |
source_type: string
|
| 221 |
source_question: string
|
| 222 |
-
target_image: struct<member
|
| 223 |
-
reference_image: struct<crop_bbox: list<
|
|
|
|
| 224 |
target_local_mask_id: int64
|
| 225 |
target_source_catalog_id: string
|
| 226 |
target_object_id: string
|
|
@@ -229,22 +130,52 @@ reference_source_catalog_id: string
|
|
| 229 |
reference_object_id: string
|
| 230 |
reference_global_object_id: int64
|
| 231 |
reference_frame: string
|
| 232 |
-
reference_mask_bbox: list<
|
| 233 |
-
reference_crop_bbox: list<
|
| 234 |
reference_crop_sha256: string
|
| 235 |
-
attribute_kind: string
|
| 236 |
-
attribute_value: string
|
| 237 |
-
attribute_material: string
|
| 238 |
-
attribute_function: string
|
| 239 |
answer_center_x_norm: double
|
| 240 |
answer_center_y_norm: double
|
| 241 |
answer_is_centered: bool
|
| 242 |
-
different_category: bool
|
| 243 |
-
source_sample_id: string
|
| 244 |
-
_dedup_key: string
|
| 245 |
```
|
| 246 |
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# VQA ground truth
|
| 2 |
|
| 3 |
+
Machine-generated question-answer pairs over all 100 RPX scenes, at full frame density: every frame of
|
| 4 |
+
every Clutter, Interaction and Clean phase and of the Ego sequence. The single-image files back task T5
|
| 5 |
+
(VQA) and the two-image files back task T6 (In-context VQA). Answers come from each object's real catalog
|
| 6 |
+
attributes and from metric depth.
|
| 7 |
+
|
| 8 |
+
To score a model, use the [benchmark subset](metadata/benchmark_subset_v1/BENCHMARK_SUBSET_README.md)
|
| 9 |
+
rather than these full banks.
|
| 10 |
+
|
| 11 |
+
<p align="center">
|
| 12 |
+
<a href="#files">Files</a> ·
|
| 13 |
+
<a href="#single-image-questions">Single-image questions</a> ·
|
| 14 |
+
<a href="#in-context-questions">In-context questions</a> ·
|
| 15 |
+
<a href="#schema">Schema</a> ·
|
| 16 |
+
<a href="#validation-and-provenance">Validation and provenance</a>
|
| 17 |
+
</p>
|
| 18 |
+
|
| 19 |
+
## Files
|
| 20 |
+
|
| 21 |
+
| File | Rows | Questions |
|
| 22 |
+
|:--|--:|:--|
|
| 23 |
+
| `attribute.parquet` | 3,241,564 | which object has a given attribute |
|
| 24 |
+
| `spatial_binary.parquet` | 744,741 | left/right and above/below, yes or no |
|
| 25 |
+
| `spatial_bbox.parquet` | 543,017 | spatial questions answered with a box |
|
| 26 |
+
| `incontext_mos_attribute_bbox.parquet` | 317,873 | attribute transfer, MOS |
|
| 27 |
+
| `incontext_ego_attribute_bbox.parquet` | 113,193 | attribute transfer, Ego |
|
| 28 |
+
| `incontext_mos_spatial_bbox.parquet` | 318,017 | farthest from a reference, MOS |
|
| 29 |
+
|
| 30 |
+
`metadata/incontext_v1/` holds the in-context release record: `VALIDATION_REPORT.json`,
|
| 31 |
+
`FUNCTION_ALIAS_DECISION.md`, `SHA256SUMS` and `RELEASE_MANIFEST.json`. The in-context Parquets are
|
| 32 |
+
full-density question banks, with every eligible fact turned into a row; the sampled benchmark lives in
|
| 33 |
+
`metadata/benchmark_subset_v1/`.
|
| 34 |
+
|
| 35 |
+
## Single-image questions
|
| 36 |
+
|
| 37 |
+
Attribute questions ask which object matches a color, material, function or composition, which one is
|
| 38 |
+
the odd one out, how many objects share an attribute, which object a synonym refers to, or whether an
|
| 39 |
+
object is absent. Spatial questions compare two named objects (left/right, above/below) or ask for the
|
| 40 |
+
object closest to the camera, farthest from a reference, or furthest left or right.
|
| 41 |
+
|
| 42 |
+
Spatial files cover MOS only, because Ego frames have no depth map. Generation enforces unique answers,
|
| 43 |
+
handles depth units explicitly, and deduplicates attribute facts across each phase. The generator is in
|
| 44 |
+
[`data/mask_annotation/visual_grounding_gt/vqa_gt/`](https://github.com/IRVLUTD/RPX/tree/main/data/mask_annotation/visual_grounding_gt/vqa_gt)
|
| 45 |
+
in the code repository.
|
| 46 |
+
|
| 47 |
+
## In-context questions
|
| 48 |
+
|
| 49 |
+
Every in-context row asks about a pair of images:
|
| 50 |
+
|
| 51 |
+
1. Image 1 (`reference_image`) is a deterministic crop of one reference object from its single-object
|
| 52 |
+
scan (SOS).
|
| 53 |
+
2. Image 2 (`target_image`) is a MOS or Ego frame from the single-image files, with the same
|
| 54 |
+
`scene_id`, `kind`, `phase` and `frame` meaning.
|
| 55 |
+
3. `answer_bbox` is `[xmin, ymin, xmax, ymax]` in Image 2's original pixels. `img_w` and `img_h`
|
| 56 |
+
describe Image 2, never the crop.
|
| 57 |
+
|
| 58 |
+
| Type | Question |
|
| 59 |
+
|:--|:--|
|
| 60 |
+
| `inctx_attr_single_color` | same color as the object in Image 1 |
|
| 61 |
+
| `inctx_attr_single_material` | same material |
|
| 62 |
+
| `inctx_attr_single_function` | same purpose |
|
| 63 |
+
| `inctx_attr_composition` | same material and purpose |
|
| 64 |
+
| `inctx_attr_odd_one_out` | not made of the same material |
|
| 65 |
+
| `inctx_spatial_farthest` | farthest from the object in Image 1 (MOS only) |
|
| 66 |
+
|
| 67 |
+
The five attribute types show a different object in Image 1, one that shares the asked attribute with
|
| 68 |
+
the answer. A candidate reference is rejected if any of its other attribute values also belongs to
|
| 69 |
+
another object visible in Image 2, so each question has exactly one defensible answer. References are
|
| 70 |
+
chosen deterministically by a SHA-256 ranking. The spatial type instead shows the anchor object
|
| 71 |
+
itself, which is expected to appear in Image 2.
|
| 72 |
+
|
| 73 |
+
For matching and ambiguity checks only, `gray` and `grey` count as the same color, compound materials
|
| 74 |
+
such as `wood/metal` are split into their parts, and `to drink`/`drink`, `to eat`/`eat` and
|
| 75 |
+
`to snack`/`snack` count as the same function. Stored text is never rewritten.
|
| 76 |
+
|
| 77 |
+
Because the published attribute data records some functions under both spellings, 426 rows of
|
| 78 |
+
`incontext_mos_attribute_bbox.parquet` (0.13%; none in Ego) describe the same reference, target and
|
| 79 |
+
frame twice. Both rows are kept, since each pairs exactly with its own published source row.
|
| 80 |
+
[`FUNCTION_ALIAS_DECISION.md`](metadata/incontext_v1/FUNCTION_ALIAS_DECISION.md) lists them.
|
| 81 |
+
|
| 82 |
+
Ego has no spatial questions of either kind in this release, single-image or in-context.
|
| 83 |
|
| 84 |
## Schema
|
| 85 |
|
| 86 |
+
Every single-image row has `scene_id`, `kind` (`mos` or `ego`), `phase` (`0`, `1`, `2` or null),
|
| 87 |
+
`frame`, `img_w`, `img_h`, `type`, `question` and `answer`. Box questions add `answer_bbox`
|
| 88 |
+
(`[xmin, ymin, xmax, ymax]` in pixels). Depth-based spatial types add `evidence`, a JSON string with
|
| 89 |
+
the measured values behind the answer, and `attr_count` adds `answer_oids` (also a JSON string). Mask
|
| 90 |
+
paths are omitted; `scene_id`, `kind`, `phase` and `frame` identify the frame.
|
| 91 |
|
| 92 |
+
In-context rows carry `source_sample_id`, the exact single-image row each one pairs with: same frame,
|
| 93 |
+
type, target object and box. It is the only join key the release stores.
|
| 94 |
|
| 95 |
+
<details>
|
| 96 |
+
<summary>Full in-context schema</summary>
|
| 97 |
|
| 98 |
+
The three in-context files share one column set. Attribute files fill the `attribute_*` columns and
|
| 99 |
+
leave `evidence` and `_dedup_key` null; the spatial file does the reverse. Unlike
|
| 100 |
+
`spatial_bbox.parquet`, the spatial file stores `evidence` as a native Parquet struct, so read it
|
| 101 |
+
directly instead of with `json.loads`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
+
```text
|
| 104 |
scene_id: string
|
| 105 |
kind: string
|
| 106 |
+
phase: double (0/1/2/null; int64 in the spatial file)
|
| 107 |
frame: string
|
| 108 |
img_w: int64
|
| 109 |
img_h: int64
|
| 110 |
type: string
|
| 111 |
question: string
|
| 112 |
answer: string
|
| 113 |
+
answer_bbox: list<int64>
|
| 114 |
+
evidence: struct<distances_2d_px: struct<name: double, ...>, reference: string>
|
| 115 |
+
(spatial file; one distance per catalog object)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
schema_version: string
|
| 117 |
generator_version: string
|
| 118 |
dataset_revision: string
|
| 119 |
sample_id: string
|
| 120 |
source_type: string
|
| 121 |
source_question: string
|
| 122 |
+
target_image: struct<member, repo_id, revision, shard: string>
|
| 123 |
+
reference_image: struct<crop_bbox: list<int64>, member, repo_id, revision,
|
| 124 |
+
shard: string>
|
| 125 |
target_local_mask_id: int64
|
| 126 |
target_source_catalog_id: string
|
| 127 |
target_object_id: string
|
|
|
|
| 130 |
reference_object_id: string
|
| 131 |
reference_global_object_id: int64
|
| 132 |
reference_frame: string
|
| 133 |
+
reference_mask_bbox: list<int64>
|
| 134 |
+
reference_crop_bbox: list<int64>
|
| 135 |
reference_crop_sha256: string
|
| 136 |
+
attribute_kind: string (attribute files)
|
| 137 |
+
attribute_value: string (attribute files)
|
| 138 |
+
attribute_material: string (attribute files)
|
| 139 |
+
attribute_function: string (attribute files)
|
| 140 |
answer_center_x_norm: double
|
| 141 |
answer_center_y_norm: double
|
| 142 |
answer_is_centered: bool
|
| 143 |
+
different_category: bool (attribute files)
|
| 144 |
+
source_sample_id: string (attribute files)
|
| 145 |
+
_dedup_key: string (spatial file; build bookkeeping)
|
| 146 |
```
|
| 147 |
|
| 148 |
+
</details>
|
| 149 |
+
|
| 150 |
+
## Validation and provenance
|
| 151 |
+
|
| 152 |
+
In-context image locators are pinned to dataset commit `93e31d378f1f98eca18a7aa01a2279c9f332440c`.
|
| 153 |
+
The in-context generator,
|
| 154 |
+
[`gt_incontext.py`](https://github.com/IRVLUTD/RPX/blob/main/data/mask_annotation/visual_grounding_gt/vqa_gt/gt_incontext.py),
|
| 155 |
+
was released from commit `fbf2fd03cd9972d159ac954cfed8fd194deb8d87`.
|
| 156 |
+
|
| 157 |
+
<details>
|
| 158 |
+
<summary>What the validation report checks</summary>
|
| 159 |
+
|
| 160 |
+
Almost every check in `VALIDATION_REPORT.json` runs on every row: box validity, identity and
|
| 161 |
+
reference-visibility rules, duplicate sample IDs, semantic duplicates (raw and alias-normalized),
|
| 162 |
+
reference crop availability and hashes, pinned revisions, row-for-row pairing with the published
|
| 163 |
+
single-image files, and frame coverage across all MOS and Ego cells. Each of the 318,017 spatial rows
|
| 164 |
+
equals one published `spatial_farthest` row.
|
| 165 |
+
|
| 166 |
+
The one sampled check is an independent recomputation of the farthest-object geometry on a subset of
|
| 167 |
+
scenes, run in addition to the exhaustive equality check above.
|
| 168 |
+
|
| 169 |
+
</details>
|
| 170 |
+
|
| 171 |
+
| File | SHA-256 |
|
| 172 |
+
|:--|:--|
|
| 173 |
+
| `incontext_mos_attribute_bbox.parquet` | `86a334247198848390c158537a235937dda2d386c022d56ede3bf135d798a94b` |
|
| 174 |
+
| `incontext_ego_attribute_bbox.parquet` | `398565fc10b58f5beec3f237c5efb8cf0fd18123fed2782f6ab1c15561a9c186` |
|
| 175 |
+
| `incontext_mos_spatial_bbox.parquet` | `6652cba3b471166e4f2dd366d9434495e63a7b80b5271cca61eeceb2ac0ec156` |
|
| 176 |
+
|
| 177 |
+
---
|
| 178 |
+
|
| 179 |
+
<sub>Part of <a href="https://github.com/IRVLUTD/RPX">RPX</a> ·
|
| 180 |
+
<a href="https://irvlutd.github.io/RPX/toolkit-docs/">Toolkit docs</a> ·
|
| 181 |
+
<a href="https://huggingface.co/datasets/IRVLUTD/RPX">Dataset card</a></sub>
|