Add dataset card: contents, conventions, provenance, DA3 round-trip, citation
Browse files
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: taskonomy-research-only
|
| 4 |
+
task_categories:
|
| 5 |
+
- depth-estimation
|
| 6 |
+
- image-to-3d
|
| 7 |
+
tags:
|
| 8 |
+
- 3d
|
| 9 |
+
- depth
|
| 10 |
+
- posed-rgbd
|
| 11 |
+
- indoor-scenes
|
| 12 |
+
- taskonomy
|
| 13 |
+
pretty_name: Taskonomy Subset (3DVLM)
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1K<n<10K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Taskonomy Subset (3DVLM)
|
| 19 |
+
|
| 20 |
+
A small, fast-to-download slice of the Taskonomy real indoor-scan dataset,
|
| 21 |
+
converted to a uniform posed-RGB-D format for quick model test-runs. This is a
|
| 22 |
+
**subset**: **25 buildings** (seeded pick, seed 0, from the Omnidata `tiny`
|
| 23 |
+
split) × **100 frames each** = **2,500 frames**.
|
| 24 |
+
|
| 25 |
+
These are real photographs of scanned buildings with **sensor-grade ground-truth
|
| 26 |
+
depth** and exact camera poses — no reconstruction or pseudo-labelling involved.
|
| 27 |
+
|
| 28 |
+
This subset is part of a family of uniformly-formatted posed-RGB-D test-run
|
| 29 |
+
datasets: see also `3dvlm-replica_subset`, `3dvlm-hm3d_subset`, and
|
| 30 |
+
`3dvlm-structured3d_subset` (same on-disk layout and conventions).
|
| 31 |
+
|
| 32 |
+
## Contents
|
| 33 |
+
|
| 34 |
+
25 buildings, one `.tar` each under `taskonomy/`. Each tar extracts to a building
|
| 35 |
+
directory:
|
| 36 |
+
|
| 37 |
+
```
|
| 38 |
+
hanson/
|
| 39 |
+
├── images/ # frame_000000.jpg … frame_000099.jpg (100 RGB frames, 512×512)
|
| 40 |
+
├── depth.npy # (100, 512, 512) float32
|
| 41 |
+
├── valid_mask.npy # (100, 512, 512) bool — True where depth is valid
|
| 42 |
+
├── extrinsics.npy # (100, 4, 4) float32 — world→camera (w2c)
|
| 43 |
+
├── intrinsics.npy # (100, 3, 3) float32 — pinhole K (per-frame)
|
| 44 |
+
└── meta.json # scene_id, frame_ids, image_size, is_single_image
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
The first axis of every array is the frame, in the same order as `meta.json`'s
|
| 48 |
+
`frame_ids` and the sorted `images/` files.
|
| 49 |
+
|
| 50 |
+
> **Note — independent captures.** Taskonomy is **single-image**: each frame is a
|
| 51 |
+
> separate `(point, view)` photograph at a distinct camera position, **not** a
|
| 52 |
+
> video trajectory. `meta.json` sets `is_single_image: true`; do **not** assume
|
| 53 |
+
> cross-frame overlap or temporal continuity within a building.
|
| 54 |
+
|
| 55 |
+
## Conventions
|
| 56 |
+
|
| 57 |
+
- **Coordinate frame:** OpenCV (x-right, y-down, z-forward). `extrinsics` is the
|
| 58 |
+
**world→camera (w2c)** matrix; invert it for camera→world. Poses are converted
|
| 59 |
+
from the source Blender frame (Z-up world, OpenGL-style camera) via a
|
| 60 |
+
Blender→OpenCV camera-axis flip before inversion.
|
| 61 |
+
- **Depth:** projective **z-depth in metres** (distance along the camera z-axis,
|
| 62 |
+
not Euclidean ray length). Decoded from the source 16-bit `depth_zbuffer`
|
| 63 |
+
(`÷512`); the source is already planar z-buffer depth, so **no Euclidean→z
|
| 64 |
+
cosine correction is applied**. Invalid pixels (source sentinel `65535`, e.g.
|
| 65 |
+
sky/missing geometry) are zeroed — use `valid_mask` to ignore them. Typical
|
| 66 |
+
valid coverage is **≈98%**, with depths in roughly the **0.4–14 m** range.
|
| 67 |
+
- **Intrinsics:** **per-frame** pinhole `K`, reconstructed from each frame's
|
| 68 |
+
field of view on a square image (`fx=fy`, principal point centred). Image size
|
| 69 |
+
is 512×512.
|
| 70 |
+
|
| 71 |
+
## Source & provenance
|
| 72 |
+
|
| 73 |
+
Built from the public **EPFL Taskonomy mirror**
|
| 74 |
+
(`https://datasets.epfl.ch/taskonomy/{building}_{domain}.tar`, no authentication).
|
| 75 |
+
Buildings are drawn from the Omnidata `tiny` split (forbidden buildings removed);
|
| 76 |
+
seed 0 selects 25 of them. Only three modalities per frame are used: `rgb`,
|
| 77 |
+
`depth_zbuffer`, and `point_info` (camera FOV + Blender pose). Each building keeps
|
| 78 |
+
the first 100 frames in source-tar order. Depth and poses are Taskonomy's own
|
| 79 |
+
ground-truth values — no depth model or pseudo-labelling is involved
|
| 80 |
+
(`is_pseudo: false`). The reconstructed `(K, w2c)` are verified to round-trip
|
| 81 |
+
through the project's ray-map (DA3) convention.
|
| 82 |
+
|
| 83 |
+
There is no separate "full" mirror of this conversion; this 25-building slice is
|
| 84 |
+
the published extent.
|
| 85 |
+
|
| 86 |
+
## Quick start
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
import tarfile, json, numpy as np
|
| 90 |
+
from huggingface_hub import hf_hub_download
|
| 91 |
+
|
| 92 |
+
p = hf_hub_download("helioom/3dvlm-taskonomy_subset", "taskonomy/hanson.tar", repo_type="dataset")
|
| 93 |
+
tarfile.open(p).extractall("taskonomy/")
|
| 94 |
+
|
| 95 |
+
meta = json.load(open("taskonomy/hanson/meta.json"))
|
| 96 |
+
depth = np.load("taskonomy/hanson/depth.npy") # (100, 512, 512)
|
| 97 |
+
mask = np.load("taskonomy/hanson/valid_mask.npy") # (100, 512, 512)
|
| 98 |
+
K = np.load("taskonomy/hanson/intrinsics.npy") # (100, 3, 3)
|
| 99 |
+
w2c = np.load("taskonomy/hanson/extrinsics.npy") # (100, 4, 4)
|
| 100 |
+
|
| 101 |
+
# Back-project frame 0 to a camera-frame point cloud (metres):
|
| 102 |
+
H, W = meta["image_size"]
|
| 103 |
+
fx, fy, cx, cy = K[0,0,0], K[0,1,1], K[0,0,2], K[0,1,2]
|
| 104 |
+
ys, xs = np.mgrid[0:H, 0:W]
|
| 105 |
+
z = depth[0]
|
| 106 |
+
X = (xs - cx) / fx * z
|
| 107 |
+
Y = (ys - cy) / fy * z
|
| 108 |
+
pts = np.stack([X, Y, z], -1)[mask[0]] # (M, 3) valid points
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
## License & citation
|
| 112 |
+
|
| 113 |
+
Built on [Taskonomy](http://taskonomy.stanford.edu/), released for **research use
|
| 114 |
+
only** under the Stanford Taskonomy license (redistribution of derived subsets
|
| 115 |
+
permitted for research); the same terms apply to this derived subset. If you use
|
| 116 |
+
this data, please cite the original paper:
|
| 117 |
+
|
| 118 |
+
```bibtex
|
| 119 |
+
@inproceedings{zamir2018taskonomy,
|
| 120 |
+
title = {Taskonomy: Disentangling Task Transfer Learning},
|
| 121 |
+
author = {Zamir, Amir R. and Sax, Alexander and Shen, William B. and Guibas, Leonidas J. and Malik, Jitendra and Savarese, Silvio},
|
| 122 |
+
booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
|
| 123 |
+
year = {2018}
|
| 124 |
+
}
|
| 125 |
+
```
|