ViewSuite-AI2-THOR / SCHEMA.md
JamesK2W's picture
Add files using upload-large-folder tool
8e19bb3 verified
|
Raw History Blame Contribute Delete
2.55 kB
# Schema
One JSON object per line in `corpus/<task>_<split>.jsonl`; the Parquet files in `data/<task>/<split>.parquet` hold the
same rows with an extra `jsonl_idx` (0-based line number) and with `image_detail` and `meta` serialized as JSON text.
## Fields of every task
| Field | Type | Meaning |
|---|---|---|
| `scene_id` | string | scene identifier |
| `sample_id` | string | `<scene>_sample_<k>`, shared by the P2V, V2P and IVP rows of one view pair |
| `prompt` | string | task text shown to the model; each `<image>` stands for the next entry of `image_path` |
| `image_path` | list of strings | images in prompt order, relative to `corpus/` |
| `image_detail` | object (JSON text in Parquet) | per image: `path`, `c2w_extrinsics` (4 x 4 OpenCV camera-to-world, z-up world frame, meters), `c2w_intrinsics` (3 x 3 pinhole K of the stored image) |
| `gt_answer` | string (P2V, V2P) / see right (IVP) | correct option letter; IVP: target pose `[tx, ty, tz, rx, ry, rz]`, meters and Euler XYZ degrees (camera-to-world) |
| `meta` | object (JSON text in Parquet) | step sizes, pitch limit, action-space flags, world up axis, image size, build tag, view-pair statistics, distractor construction, image statistics, ground-truth action letters and names |
| `action_space_version` | string | action-space identifier, also in `meta` |
## IVP only
| Field | Type | Meaning |
|---|---|---|
| `gt_action_seq` | list of strings | the ground-truth action sequence from the start view to the target (canonical plan; action letters, names in `meta.gt_action_seq_names`) |
## `image_detail` keys
- `init_view`: start view; `top_down_view`: overhead reference view;
- P2V / V2P: `view_0` ... `view_3` (the four candidate views; the answer's view is the target);
- IVP: `target_view`.
## Action letters
`w` / `s` move forward / backward, `a` / `d` move left / right, `y` / `h` move up / down, `q` / `e` turn left / right,
`r` / `f` look up / down (names: `move_forward`, `move_backward`, `move_left`, `move_right`, `move_up`, `move_down`,
`turn_left`, `turn_right`, `look_up`, `look_down`).
## render/images.jsonl (when present)
| Field | Meaning |
|---|---|
| `path` | image path relative to `corpus/` |
| `scene_id`, `kind` | scene; `option`, `target`, `initial` or `top_down` |
| `width`, `height` | image size (256 x 256) |
| `K`, `c2w` | camera of the render (same values as in `image_detail`) |
| `file_sha256` | SHA-256 of the original PNG file |
| `pixel_sha256` | SHA-256 of the decoded image as height x width x 3 uint8 RGB bytes (row-major) |