File size: 10,407 Bytes
6823be1
47a410c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6823be1
47a410c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
---
pretty_name: LIFT-Vista
license: cc-by-nc-sa-4.0 
language:
- en
task_categories:
- video-generation
tags:
- video-generation
- camera-control
- layout-control
- bounding-box
- novel-view-synthesis
size_categories:
- 120,898
configs:
- config_name: camlayout
  default: true
  data_files:
  - split: train
    path: camlayout.csv
- config_name: camera
  data_files:
  - split: train
    path: camera.csv
---

# LIFT-Vista

<p align="center">
  <a href="https://jsxzs.github.io/LIFT"><img src="https://img.shields.io/badge/Project%20Page-LIFT-blue?logo=googlechrome&logoColor=white" alt="Project Page"></a>
  <!-- <a href="https://arxiv.org/abs/XXXX.XXXXX"><img src="https://img.shields.io/badge/arXiv-XXXX.XXXXX-b31b1b?logo=arxiv&logoColor=white" alt="arXiv"></a> -->
  <a href="https://github.com/jsxzs/LIFT"><img src="https://img.shields.io/badge/GitHub-Code-181717?logo=github&logoColor=white" alt="Code"></a>
  <a href="https://huggingface.co/Overdog/LIFT"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-ffcc00" alt="Hugging Face Model"></a>
  <a href="https://huggingface.co/datasets/Overdog/LIFT-Vista"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Dataset-ffcc00" alt="Hugging Face Dataset"></a>
</p>

LIFT-Vista is a dataset with large camera viewpoint changes and joint camera-layout annotations.

## Overview

| | `camera.csv` | `camlayout.csv` |
|---|---|---|
| Clips | 120,898 | 58,272 (a subset of the camera clips) |
| Annotations | camera trajectory, caption | camera trajectory, caption, last-frame layout, per-frame box tracks |

Every clip has 81 frames at 16 fps (about 5 s) at the native resolution of its source video (98% are 1280×720),
encoded with H.264. The release is about 413 GB, of which 407 GB are videos.

## Download

Videos and annotations are stored as tar shards in `tars/` (about 4 GB per video shard). Extracting them in the
dataset root restores the `videos/` and `annotations/` directories that the CSV paths point to (413 GB in total):

```bash
hf download Overdog/LIFT-Vista --repo-type dataset --local-dir LIFT-Vista
cd LIFT-Vista
for f in tars/*.tar; do tar -xf "$f"; done
```

`camlayout.csv` only needs the `camlayout` shards (179 GB):

```bash
hf download Overdog/LIFT-Vista --repo-type dataset --local-dir LIFT-Vista \
  --include "*.md" --include "*.csv" --include "assets/*" \
  --include "tars/annotations_camlayout.tar" --include "tars/videos_camlayout_*.tar"
cd LIFT-Vista
for f in tars/*.tar; do tar -xf "$f"; done
```

## Structure

```
LIFT-Vista/
├── camera.csv
├── camlayout.csv
├── videos/<source>/<video_id>/<window>.mp4
└── annotations/<source>/<video_id>/<window>/
    ├── camera_da3.npz              # every clip
    ├── caption.txt                 # every clip
    ├── layout_lastframe.json       # camlayout clips only
    └── layout_track_<W>x<H>.json   # camlayout clips only
```

`<source>` is `SpatialVID`, `Sekai` or `RealEstate10K`, `<video_id>` is the id of the video in the source dataset,
and `<window>` is the window index `w` of the 81-frame window extracted from the source video.

### CSV columns

| Column | Description |
|---|---|
| `UID` | unique clip id, `<video_id>_<window>` |
| `resolution` | clip resolution, `WxH` |
| `fps`, `num_frames` | frame rate and frame count of the **source video** the clip was cut from (every clip itself has 81 frames at 16 fps) |
| `Video_Path` | the clip, relative to the dataset root |
| `Annotation_Path` | the annotation directory, relative to the dataset root |
| `CameraFile` | camera file inside `Annotation_Path` |
| `layout_file` | last-frame layout inside `Annotation_Path` (`camlayout.csv` only) |
| `sam3_track_file` | box tracks inside `Annotation_Path` (`camlayout.csv` only) |
| `sam3_track_resolution` | pixel grid `WxH` of the track boxes; equal to `resolution` except for 183 clips whose tracks were computed at 640×352 or 832×480 (rescale x and y separately) |
| `caption` | text caption, identical to `caption.txt` |

### Camera (`camera_da3.npz`)

- `extrinsic`: `(81, 3, 4)` world-to-camera matrices `[R | t]`, OpenCV convention (x right, y down, z forward).
- `intrinsic`: `(81, 3, 3)` pinhole intrinsics in pixels of the clip resolution.

### Last-frame layout (`layout_lastframe.json`)

```
{
  "instances": [
    {
      "id": 0,
      "category": "chair",
      "bbox": [0, 515, 332, 719],
      "caption": "white upholstered chair with an orange throw pillow"
    },
    ...
  ]
}
```

Salient foreground objects of the last frame (frame 80), with boxes `[x1, y1, x2, y2]` in pixels of the clip
resolution.

### Box tracks (`layout_track_<W>x<H>.json`)

```
{
  "source_layout_file": "layout_lastframe.json",
  "track_resolution": "1280x720",               # pixel grid of every box in this file
  "prompt_frame_idx": 80,
  "num_frames": 81,
  "tracks": {
    "0": {"id": 0, "category": "chair", "caption": "...",
          "bboxes": {"37": [x1, y1, x2, y2], ..., "80": [x1, y1, x2, y2]}},   # no box in frames 0..36
    ...
  },
  "frames": {"37": [{"id": 0, "category": "chair", "caption": "...", "bbox": [x1, y1, x2, y2]}, ...], ...}
}
```

## Statistics

`camera.csv` has **120,898** clips for camera-control training (Stage 1 in the paper) and
`camlayout.csv` has a subset of **58,272** clips with layouts (Stages 2 and 3).
The layout annotations contain **5.5 objects per clip** on average and cover **8,302 category labels**, including indoor objects (chair, window, lamp, cabinet, sofa, ...) and outdoor objects (person, building, car, boat, tree, sign, ...).
**84.8%** of the layout clips contain objects that are
not visible in the first frame and only appear in later views.

![Data distribution](assets/data_distribution.png)

(a, b) Distributions of the FoV expansion ratio and the translation distance over all candidate windows before
filtering (blue) and ours (red); filtering removes the mass of near-static windows and shifts both
metrics toward larger viewpoint changes.
(c) Joint distribution of the two camera-motion metrics, with 50% and 90% mass contours per source dataset.
(d) Joint distribution of the two content change ratios; the two directions are correlated and complementary but not redundant.
(e) Number of training clips per source dataset.

**FoV expansion ratio.** We uniformly sample $K$ keyframes from each clip ($K = 8$). For the $i$-th keyframe, let
$\Omega_{k_i} \subseteq \mathbb{S}^2$ denote the set of visible viewing directions in a common world coordinate system;
its spherical area is estimated using uniformly sampled directions on the unit sphere. The FoV expansion ratio

$$
r_{\mathrm{FoV}} = \frac{\left| \bigcup_{i=1}^{K} \Omega_{k_i} \right|}{\left| \Omega_{k_1} \right|}
$$

measures the total viewing region covered by the clip relative to the first frame.

**Translation distance.** The accumulated camera translation is

$$
d_{\mathrm{trans}} = \sum_{i=1}^{K-1} \left\| \mathbf{o}_{k_{i+1}} - \mathbf{o}_{k_i} \right\|_2 ,
$$

where $\mathbf{o}_{k_i}$ denotes the camera origin of the $i$-th keyframe.

**Content change ratios (CCR).** Since camera motion alone does not directly measure changes in visible scene content,
we additionally compute a patch-level CCR between the first and last frames using DINOv2. Let
$\{\mathbf{p}_i\}_{i=1}^{N}$ and $\{\mathbf{q}_j\}_{j=1}^{N}$ denote their $\ell_2$-normalized patch embeddings. The
last-frame CCR is

$$
r_{lf\text{-}CCR} = \frac{1}{N} \sum_{j=1}^{N} \mathbb{I}\left[ \max_i \langle \mathbf{p}_i, \mathbf{q}_j \rangle < \tau \right],
$$

where $\mathbb{I}[\cdot]$ denotes the indicator function, $\langle \cdot, \cdot \rangle$ denotes the cosine similarity,
and $\tau$ is a similarity threshold ($\tau = 0.5$). $r_{lf\text{-}CCR}$ measures the fraction of last-frame patches
unmatched in the first frame (new content); $r_{ff\text{-}CCR}$ is computed analogously in the reverse direction to
measure content leaving the initial view (lost content).

## Usage

```python
import json, os
import numpy as np
import pandas as pd

root = "LIFT-Vista"
df = pd.read_csv(os.path.join(root, "camlayout.csv"))
row = df.iloc[0]

video_path = os.path.join(root, row.Video_Path)            # 81 frames, 16 fps
ann_dir = os.path.join(root, row.Annotation_Path)

cam = np.load(os.path.join(ann_dir, row.CameraFile))
w2c, K = cam["extrinsic"], cam["intrinsic"]                # (81, 3, 4), (81, 3, 3)

with open(os.path.join(ann_dir, row.sam3_track_file)) as f:
    tracks = json.load(f)["tracks"]
tw, th = map(int, row.sam3_track_resolution.split("x"))   # pixel grid of the boxes
for obj in tracks.values():
    frames = sorted(int(k) for k in obj["bboxes"])
    print(obj["category"], "| visible in frames", frames[0], "to", frames[-1], "|", obj["caption"])
```

The LIFT training code reads these CSVs directly; see the [code repository](https://github.com/jsxzs/LIFT).


## Citation

Coming soon.

Please also cite the source datasets:

```bibtex
@misc{wang2025spatialvidlargescalevideodataset,
      title={SpatialVID: A Large-Scale Video Dataset with Spatial Annotations}, 
      author={Jiahao Wang and Yufeng Yuan and Rujie Zheng and Youtian Lin and Jian Gao and Lin-Zhuo Chen and Yajie Bao and Yi Zhang and Chang Zeng and Yanxi Zhou and Xiaoxiao Long and Hao Zhu and Zhaoxiang Zhang and Xun Cao and Yao Yao},
      year={2025},
      eprint={2509.09676},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2509.09676}, 
}

@article{li2025sekai,
      title={Sekai: A Video Dataset towards World Exploration}, 
      author={Zhen Li and Chuanhao Li and Xiaofeng Mao and Shaoheng Lin and Ming Li and Shitian Zhao and Zhaopan Xu and Xinyue Li and Yukang Feng and Jianwen Sun and Zizhen Li and Fanrui Zhang and Jiaxin Ai and Zhixiang Wang and Yuwei Wu and Tong He and Jiangmiao Pang and Yu Qiao and Yunde Jia and Kaipeng Zhang},
      journal={arXiv preprint arXiv:2506.15675},
      year={2025}
}

@article{zhou2018stereo,
  author    = {Zhou, Tinghui and Tucker, Richard and Flynn, John and Fyffe, Graham and Snavely, Noah},
  title     = {Stereo Magnification: Learning View Synthesis using Multiplane Images},
  journal   = {ACM Transactions on Graphics (SIGGRAPH)},
  volume    = {37},
  number    = {4},
  articleno = {65},
  year      = {2018},
  url       = {https://dl.acm.org/doi/10.1145/3197517.3201323}
}
```