Sg11100 commited on
Commit
82223c9
·
0 Parent(s):

Release OmniLife360 dataset benchmark

Browse files
.gitattributes ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ *.tar.zst filter=lfs diff=lfs merge=lfs -text
2
+ *.zip filter=lfs diff=lfs merge=lfs -text
3
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
4
+ *.jpg filter=lfs diff=lfs merge=lfs -text
5
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
6
+ *.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "OmniLife360"
3
+ license: cc-by-nc-4.0
4
+ tags:
5
+ - 3d
6
+ - video
7
+ - computer-vision
8
+ - benchmark
9
+ - panoramic
10
+ - 360-panorama
11
+ - reconstruction
12
+ - gaussian-splatting
13
+ ---
14
+
15
+ # OmniLife360
16
+
17
+ OmniLife360 is a benchmark for 3D reconstruction from in-the-wild 360-degree captures. This repository provides source links, benchmark metadata, COLMAP/SfM reconstruction results, and helper scripts for frame preparation and panorama SfM reproduction.
18
+
19
+ The benchmark contains 2,407 panoramic sequences, totaling about 66 hours, with 1,937 training sequences and 470 testing sequences across 64 scene categories and 31 action classes. The metadata includes 2,177 publicly linked web-video sequences and 230 author-captured sequences that are not publicly linked.
20
+
21
+ ## Repository Contents
22
+
23
+ ```text
24
+ metadata/train_test_split_with_links.json
25
+ sfm/omnilife360_colmap_sfm_results.tar.zst
26
+ scripts/prepare_frames_from_metadata.py
27
+ scripts/run_panorama_sfm_from_frames.sh
28
+ ```
29
+
30
+ `metadata/train_test_split_with_links.json` is the main benchmark index. It stores the official split, source links where available, temporal segments, scene/action labels, captions, and basic media metadata.
31
+
32
+ `sfm/omnilife360_colmap_sfm_results.tar.zst` contains COLMAP/SfM reconstruction outputs organized by the same split/scene/sequence structure. The archive includes reconstruction files under `colmap_nonoverlap/sparse/`.
33
+
34
+ The `scripts/` directory contains helpers for preparing frames from public source links and reproducing the panorama SfM directory layout.
35
+
36
+ ## Metadata Fields
37
+
38
+ Each sequence is identified by the full path `<split>/<scene>/<clip_id>`. A small number of `clip_id` values appear in more than one scene or split, so the full path should be used as the unique key.
39
+
40
+ Important fields include:
41
+
42
+ - `source_video_id`: normalized source identifier.
43
+ - `source_url`: public source URL for web videos; `null` for author-captured sequences.
44
+ - `source_url_status`: `inferred_from_video_id` or `author_team_capture_not_publicly_linked`.
45
+ - `start_sec`, `end_sec`, `duration`: temporal segment definition, where `duration = end_sec - start_sec`.
46
+ - `scene`, `action`, `area`: benchmark labels.
47
+ - `resolution`, `frame_rate`: source media properties.
48
+ - `caption`: sequence-level caption.
49
+
50
+ ## Frame Preparation
51
+
52
+ For public web videos, users can download the source video from `source_url` and extract the benchmark segment defined by `start_sec` and `end_sec`. Our preprocessing samples panoramic frames at 1 FPS, resizes them to `1920x960`, and stores them as:
53
+
54
+ ```text
55
+ <data_root>/<split>/<scene>/<clip_id>/images/%04d.jpg
56
+ ```
57
+
58
+ To prepare frames for all publicly linked sequences:
59
+
60
+ ```bash
61
+ python scripts/prepare_frames_from_metadata.py \
62
+ --metadata metadata/train_test_split_with_links.json \
63
+ --output-root <data_root> \
64
+ --download-root <download_cache> \
65
+ --split all
66
+ ```
67
+
68
+ Author-captured sequences with `source_url: null` are skipped by this script.
69
+
70
+ ## Panorama SfM
71
+
72
+ The released SfM models were produced from the extracted panoramic frames using COLMAP's panorama pipeline with non-overlapping perspective rendering. To reproduce the same directory layout, set `PANO_SCRIPT` to COLMAP's `python/examples/panorama_sfm.py` and run:
73
+
74
+ ```bash
75
+ DATA_ROOT=<data_root> \
76
+ PANO_SCRIPT=<path_to_colmap>/python/examples/panorama_sfm.py \
77
+ GPU_IDS="0" \
78
+ bash scripts/run_panorama_sfm_from_frames.sh
79
+ ```
80
+
81
+ This writes results under:
82
+
83
+ ```text
84
+ <data_root>/<split>/<scene>/<clip_id>/colmap_nonoverlap/
85
+ ```
86
+
87
+ Image names inside the COLMAP sparse models follow the rendered layout `colmap_nonoverlap/images/pano_camera*/%04d.jpg`. Public web videos may become unavailable or may be transcoded by hosting platforms over time, so exact frame-level reproduction is best-effort.
88
+
89
+ ## Responsible Use And Takedown
90
+
91
+ OmniLife360 was constructed from publicly accessible 360-degree videos from the web, together with a small number of panoramic sequences captured by the author team. Candidate videos were manually reviewed and screened for privacy risks. Videos containing sensitive, private, harmful, inappropriate, or otherwise privacy-risky content were excluded. Author-captured sequences were reviewed under the same criteria before inclusion.
92
+
93
+ We do not annotate personal identities, usernames, demographic attributes, or other personally identifiable information. The benchmark is intended for academic evaluation of 360-degree 3D reconstruction methods, not for identifying, analyzing, or profiling individuals.
94
+
95
+ Please use the dataset responsibly and avoid privacy-invasive applications such as person re-identification, face recognition, biometric identification, surveillance, profiling, individual tracking, targeting individuals, or attempts to recover uploader/platform identities.
96
+
97
+ For dataset questions or requests to remove links or associated metadata, contact:
98
+
99
+ `zonglinzhao@hust.edu.cn`
100
+
101
+ Please include, when available, your name, contact email, relationship to the content, relevant source URL or sequence ID, and the reason for the request.
102
+
103
+ ## Citation
104
+
105
+ If you use OmniLife360, please cite:
106
+
107
+ ```bibtex
108
+ @inproceedings{omnilife360_2026,
109
+ title = {OmniLife360: A Benchmark for 3D Reconstruction from In-the-Wild 360-Degree Captures},
110
+ author = {OmniLife360 Authors},
111
+ booktitle = {European Conference on Computer Vision (ECCV)},
112
+ year = {2026}
113
+ }
114
+ ```
115
+
116
+ ## License
117
+
118
+ OmniLife360 is released under the Creative Commons Attribution-NonCommercial 4.0 International license (`CC BY-NC 4.0`).
metadata/train_test_split_with_links.json ADDED
The diff for this file is too large to render. See raw diff
 
scripts/prepare_frames_from_metadata.py ADDED
@@ -0,0 +1,233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Download public source videos and extract OmniLife360 panoramic frames.
3
+
4
+ The script reads metadata/train_test_split_with_links.json and writes frames to:
5
+
6
+ <output_root>/<split>/<scene>/<clip_id>/images/%04d.jpg
7
+
8
+ Only entries with a non-null source_url are processed. Author-captured sequences
9
+ are intentionally skipped because they are not publicly linked in this release.
10
+ """
11
+
12
+ import argparse
13
+ import json
14
+ import re
15
+ import subprocess
16
+ from pathlib import Path
17
+ from typing import Dict, Iterator, List, Optional, Tuple
18
+
19
+
20
+ VIDEO_EXTENSIONS = {".mp4", ".mkv", ".webm", ".mov", ".m4v"}
21
+
22
+
23
+ def iter_entries(metadata: Dict, split_filter: str) -> Iterator[Tuple[str, str, str, Dict]]:
24
+ for split, scenes in metadata.items():
25
+ if split_filter != "all" and split != split_filter:
26
+ continue
27
+ for scene, clips in scenes.items():
28
+ for clip_id, info in clips.items():
29
+ yield split, scene, clip_id, info
30
+
31
+
32
+ def safe_stem(value: str) -> str:
33
+ return re.sub(r"[^A-Za-z0-9_.-]+", "_", value).strip("_") or "source_video"
34
+
35
+
36
+ def find_downloaded_video(download_dir: Path, source_id: str) -> Optional[Path]:
37
+ stem = safe_stem(source_id)
38
+ candidates: List[Path] = []
39
+ for path in download_dir.glob(f"{stem}.*"):
40
+ if path.suffix.lower() in VIDEO_EXTENSIONS and path.is_file():
41
+ candidates.append(path)
42
+ if not candidates:
43
+ return None
44
+ candidates.sort(key=lambda p: p.stat().st_mtime, reverse=True)
45
+ return candidates[0]
46
+
47
+
48
+ def run(cmd: List[str], dry_run: bool) -> None:
49
+ print("+", " ".join(cmd))
50
+ if not dry_run:
51
+ subprocess.run(cmd, check=True)
52
+
53
+
54
+ def download_video(
55
+ source_url: str,
56
+ source_id: str,
57
+ download_dir: Path,
58
+ ytdlp_format: str,
59
+ dry_run: bool,
60
+ ) -> Path:
61
+ existing = find_downloaded_video(download_dir, source_id)
62
+ if existing is not None:
63
+ return existing
64
+
65
+ download_dir.mkdir(parents=True, exist_ok=True)
66
+ out_template = str(download_dir / f"{safe_stem(source_id)}.%(ext)s")
67
+ cmd = [
68
+ "yt-dlp",
69
+ "-f",
70
+ ytdlp_format,
71
+ "--merge-output-format",
72
+ "mp4",
73
+ "-o",
74
+ out_template,
75
+ source_url,
76
+ ]
77
+ run(cmd, dry_run)
78
+
79
+ if dry_run:
80
+ return download_dir / f"{safe_stem(source_id)}.mp4"
81
+
82
+ downloaded = find_downloaded_video(download_dir, source_id)
83
+ if downloaded is None:
84
+ raise FileNotFoundError(f"yt-dlp finished but no video was found for {source_id}")
85
+ return downloaded
86
+
87
+
88
+ def extract_frames(
89
+ video_path: Path,
90
+ out_dir: Path,
91
+ start_sec: float,
92
+ end_sec: float,
93
+ fps: float,
94
+ width: int,
95
+ height: int,
96
+ quality: int,
97
+ overwrite: bool,
98
+ dry_run: bool,
99
+ ) -> int:
100
+ image_dir = out_dir / "images"
101
+ existing = sorted(image_dir.glob("*.jpg")) if image_dir.is_dir() else []
102
+ if existing and not overwrite:
103
+ print(f"[skip] existing frames: {image_dir}")
104
+ return len(existing)
105
+
106
+ image_dir.mkdir(parents=True, exist_ok=True)
107
+ if overwrite:
108
+ for path in image_dir.glob("*.jpg"):
109
+ if not dry_run:
110
+ path.unlink()
111
+
112
+ cmd = [
113
+ "ffmpeg",
114
+ "-hide_banner",
115
+ "-loglevel",
116
+ "error",
117
+ "-y",
118
+ "-nostdin",
119
+ "-i",
120
+ str(video_path),
121
+ "-ss",
122
+ f"{start_sec:.6f}",
123
+ "-to",
124
+ f"{end_sec:.6f}",
125
+ "-vf",
126
+ f"fps={fps},scale={width}:{height}:flags=lanczos",
127
+ "-q:v",
128
+ str(quality),
129
+ str(image_dir / "%04d.jpg"),
130
+ ]
131
+ run(cmd, dry_run)
132
+
133
+ if dry_run:
134
+ return 0
135
+ return len(list(image_dir.glob("*.jpg")))
136
+
137
+
138
+ def parse_args() -> argparse.Namespace:
139
+ parser = argparse.ArgumentParser(
140
+ description="Prepare OmniLife360 panoramic frames from public source URLs."
141
+ )
142
+ parser.add_argument(
143
+ "--metadata",
144
+ default="metadata/train_test_split_with_links.json",
145
+ help="Path to train_test_split_with_links.json.",
146
+ )
147
+ parser.add_argument(
148
+ "--output-root",
149
+ required=True,
150
+ help="Directory where <split>/<scene>/<clip_id>/images will be written.",
151
+ )
152
+ parser.add_argument(
153
+ "--download-root",
154
+ required=True,
155
+ help="Directory where downloaded source videos will be cached.",
156
+ )
157
+ parser.add_argument("--split", choices=["train", "test", "all"], default="all")
158
+ parser.add_argument("--fps", type=float, default=1.0)
159
+ parser.add_argument("--width", type=int, default=1920)
160
+ parser.add_argument("--height", type=int, default=960)
161
+ parser.add_argument("--jpeg-quality", type=int, default=2)
162
+ parser.add_argument(
163
+ "--ytdlp-format",
164
+ default="bestvideo+bestaudio/best",
165
+ help="Format selector passed to yt-dlp.",
166
+ )
167
+ parser.add_argument("--overwrite", action="store_true")
168
+ parser.add_argument("--max-items", type=int, default=0)
169
+ parser.add_argument("--dry-run", action="store_true")
170
+ return parser.parse_args()
171
+
172
+
173
+ def main() -> None:
174
+ args = parse_args()
175
+ metadata = json.loads(Path(args.metadata).read_text(encoding="utf-8"))
176
+ output_root = Path(args.output_root)
177
+ download_root = Path(args.download_root)
178
+
179
+ processed = 0
180
+ skipped = 0
181
+ failed = 0
182
+
183
+ for split, scene, clip_id, info in iter_entries(metadata, args.split):
184
+ source_url = info.get("source_url")
185
+ if not source_url:
186
+ skipped += 1
187
+ continue
188
+
189
+ if args.max_items and processed >= args.max_items:
190
+ break
191
+
192
+ source_id = info.get("source_video_id") or info.get("video_id") or clip_id
193
+ start_sec = float(info.get("start_sec", 0.0))
194
+ end_sec = float(info.get("end_sec", 0.0))
195
+ if end_sec <= start_sec:
196
+ print(f"[skip] invalid time window: {split}/{scene}/{clip_id}")
197
+ skipped += 1
198
+ continue
199
+
200
+ out_dir = output_root / split / scene / clip_id
201
+ try:
202
+ video_path = download_video(
203
+ source_url=source_url,
204
+ source_id=source_id,
205
+ download_dir=download_root,
206
+ ytdlp_format=args.ytdlp_format,
207
+ dry_run=args.dry_run,
208
+ )
209
+ n = extract_frames(
210
+ video_path=video_path,
211
+ out_dir=out_dir,
212
+ start_sec=start_sec,
213
+ end_sec=end_sec,
214
+ fps=args.fps,
215
+ width=args.width,
216
+ height=args.height,
217
+ quality=args.jpeg_quality,
218
+ overwrite=args.overwrite,
219
+ dry_run=args.dry_run,
220
+ )
221
+ print(f"[ok] {split}/{scene}/{clip_id} frames={n}")
222
+ processed += 1
223
+ except Exception as exc:
224
+ print(f"[fail] {split}/{scene}/{clip_id}: {exc}")
225
+ failed += 1
226
+
227
+ print(f"done: processed={processed} skipped={skipped} failed={failed}")
228
+ if failed:
229
+ raise SystemExit(1)
230
+
231
+
232
+ if __name__ == "__main__":
233
+ main()
scripts/run_panorama_sfm_from_frames.sh ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Run COLMAP's panorama_sfm.py on frames prepared as:
5
+ # DATA_ROOT/<split>/<scene>/<clip_id>/images/%04d.jpg
6
+ #
7
+ # Required:
8
+ # DATA_ROOT Root containing train/test scene folders.
9
+ # PANO_SCRIPT Path to COLMAP's python/examples/panorama_sfm.py.
10
+ #
11
+ # Optional:
12
+ # OUT_ROOT Output root. Defaults to DATA_ROOT.
13
+ # GPU_IDS Space-separated GPU ids. Defaults to "0".
14
+ # MATCHER COLMAP matcher. Defaults to "sequential".
15
+ # PANO_RENDER_TYPE Defaults to "non-overlapping".
16
+ # SPLIT_FILTER train | test | all. Defaults to all.
17
+ # MIN_IMAGES Minimum panoramic frames per sequence. Defaults to 2.
18
+
19
+ DATA_ROOT="${DATA_ROOT:-}"
20
+ OUT_ROOT="${OUT_ROOT:-$DATA_ROOT}"
21
+ PANO_SCRIPT="${PANO_SCRIPT:-}"
22
+ GPU_IDS="${GPU_IDS:-0}"
23
+ MATCHER="${MATCHER:-sequential}"
24
+ PANO_RENDER_TYPE="${PANO_RENDER_TYPE:-non-overlapping}"
25
+ SPLIT_FILTER="${SPLIT_FILTER:-all}"
26
+ MIN_IMAGES="${MIN_IMAGES:-2}"
27
+ MASTER_LOG="$OUT_ROOT/panorama_sfm.log"
28
+
29
+ if [[ -z "$DATA_ROOT" ]]; then
30
+ echo "[ERROR] DATA_ROOT is required"
31
+ exit 1
32
+ fi
33
+
34
+ if [[ -z "$PANO_SCRIPT" || ! -f "$PANO_SCRIPT" ]]; then
35
+ echo "[ERROR] PANO_SCRIPT must point to COLMAP's panorama_sfm.py"
36
+ exit 1
37
+ fi
38
+
39
+ if [[ "$SPLIT_FILTER" != "train" && "$SPLIT_FILTER" != "test" && "$SPLIT_FILTER" != "all" ]]; then
40
+ echo "[ERROR] SPLIT_FILTER must be train, test, or all"
41
+ exit 1
42
+ fi
43
+
44
+ mkdir -p "$OUT_ROOT"
45
+ IFS=' ' read -r -a GPU_ID_LIST <<< "$GPU_IDS"
46
+ declare -A GPU_PIDS
47
+
48
+ has_complete_sparse() {
49
+ local out_dir="$1"
50
+ [[ -f "$out_dir/sparse/0/cameras.bin" && -f "$out_dir/sparse/0/images.bin" && -f "$out_dir/sparse/0/points3D.bin" ]]
51
+ }
52
+
53
+ wait_for_free_gpu() {
54
+ while true; do
55
+ for gpu in "${GPU_ID_LIST[@]}"; do
56
+ local pid="${GPU_PIDS[$gpu]-}"
57
+ if [[ -z "$pid" ]] || ! kill -0 "$pid" 2>/dev/null; then
58
+ GPU_PIDS[$gpu]=""
59
+ echo "$gpu"
60
+ return 0
61
+ fi
62
+ done
63
+ sleep 3
64
+ done
65
+ }
66
+
67
+ start_colmap_job() {
68
+ local gpu="$1"
69
+ local img_dir="$2"
70
+ local out_dir="$3"
71
+ local desc="$4"
72
+
73
+ mkdir -p "$out_dir"
74
+ echo "[INFO] COLMAP start GPU=$gpu $desc" | tee -a "$MASTER_LOG"
75
+ (
76
+ set +e
77
+ export CUDA_VISIBLE_DEVICES="$gpu"
78
+ python "$PANO_SCRIPT" \
79
+ --input_image_path "$img_dir" \
80
+ --output_path "$out_dir" \
81
+ --matcher "$MATCHER" \
82
+ --pano_render_type "$PANO_RENDER_TYPE" \
83
+ > "$out_dir/run.log" 2>&1
84
+ status=$?
85
+ if [[ "$status" -ne 0 ]]; then
86
+ echo "[WARN] COLMAP failed status=$status $out_dir" >> "$MASTER_LOG"
87
+ else
88
+ echo "[INFO] COLMAP done $out_dir" >> "$MASTER_LOG"
89
+ fi
90
+ ) &
91
+ GPU_PIDS["$gpu"]=$!
92
+ }
93
+
94
+ LIST_TSV="$OUT_ROOT/panorama_sfm_list.tsv"
95
+
96
+ python - <<'PY' "$DATA_ROOT" "$LIST_TSV" "$SPLIT_FILTER"
97
+ import os
98
+ import sys
99
+
100
+ data_root, out_path, split_filter = sys.argv[1:4]
101
+ splits = ("train", "test") if split_filter == "all" else (split_filter,)
102
+ rows = []
103
+
104
+ for split in splits:
105
+ split_dir = os.path.join(data_root, split)
106
+ if not os.path.isdir(split_dir):
107
+ continue
108
+ for scene in sorted(os.listdir(split_dir)):
109
+ scene_dir = os.path.join(split_dir, scene)
110
+ if not os.path.isdir(scene_dir):
111
+ continue
112
+ for clip_id in sorted(os.listdir(scene_dir)):
113
+ clip_dir = os.path.join(scene_dir, clip_id)
114
+ img_dir = os.path.join(clip_dir, "images")
115
+ if os.path.isdir(img_dir):
116
+ rows.append((split, scene, clip_id, img_dir))
117
+
118
+ os.makedirs(os.path.dirname(out_path), exist_ok=True)
119
+ with open(out_path, "w", encoding="utf-8") as f:
120
+ for row in rows:
121
+ f.write("\t".join(row) + "\n")
122
+ PY
123
+
124
+ echo "[INFO] DATA_ROOT=$DATA_ROOT" | tee -a "$MASTER_LOG"
125
+ echo "[INFO] OUT_ROOT=$OUT_ROOT" | tee -a "$MASTER_LOG"
126
+ echo "[INFO] PANO_SCRIPT=$PANO_SCRIPT" | tee -a "$MASTER_LOG"
127
+ echo "[INFO] GPU_IDS=$GPU_IDS MATCHER=$MATCHER PANO_RENDER_TYPE=$PANO_RENDER_TYPE SPLIT_FILTER=$SPLIT_FILTER" | tee -a "$MASTER_LOG"
128
+
129
+ exec 3< "$LIST_TSV"
130
+ while IFS=$'\t' read -r split scene clip_id img_dir <&3; do
131
+ [[ -z "$split" ]] && continue
132
+
133
+ img_count=$(find "$img_dir" -maxdepth 1 -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) | wc -l | tr -d ' ')
134
+ if [[ "$img_count" -lt "$MIN_IMAGES" ]]; then
135
+ echo "[WARN] too few images count=$img_count $img_dir" | tee -a "$MASTER_LOG"
136
+ continue
137
+ fi
138
+
139
+ out_dir="$OUT_ROOT/$split/$scene/$clip_id/colmap_nonoverlap"
140
+ if has_complete_sparse "$out_dir"; then
141
+ echo "[INFO] skip existing $out_dir" | tee -a "$MASTER_LOG"
142
+ continue
143
+ fi
144
+
145
+ gpu=$(wait_for_free_gpu)
146
+ start_colmap_job "$gpu" "$img_dir" "$out_dir" "$split/$scene/$clip_id images=$img_count"
147
+ done
148
+ exec 3<&-
149
+
150
+ for gpu in "${GPU_ID_LIST[@]}"; do
151
+ pid="${GPU_PIDS[$gpu]-}"
152
+ if [[ -n "$pid" ]]; then
153
+ wait "$pid" || true
154
+ fi
155
+ done
156
+
157
+ echo "[INFO] done $(date '+%F %T')" | tee -a "$MASTER_LOG"
sfm/omnilife360_colmap_sfm_results.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43006e22abb6568b5607bb7b19180ba8b47f1eba412d217f9aedcec0265ec37f
3
+ size 11515225434