VidMap: video-based Structure-from-Motion that keeps the temporal structure
VidMap: Exploiting Temporal Structure for Video-Based Structure-from-Motion (ECCV 2026)
At a glance
- What is it?
- VidMap is an offline Structure-from-Motion system for video from the cvg group at ETH Zurich, presented at ECCV 2026. It extends COLMAP's global mapping pipeline with temporal tracks, loop closures and metric depth, at the cost of a heavy build and roughly 9 GB of downloaded checkpoints on the first run.
- Who is it for?
- Adopt VidMap if you already build COLMAP from source, have NVIDIA GPUs, and want camera poses and a sparse map from a video rather than from unordered photos; the repository ships a silent example video so you can validate the whole frontend-to-mapping path before touching your own footage.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 5 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- cvg/vidmap499 ★ · +54
| Repository | 2026-09-17 | 2026-11-22 |
|---|---|---|
| cvg/vidmap | 445 | 499 |
54 Stars in the last 66 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What VidMap does that a photo-based SfM pipeline does not
VidMap is an offline Structure-from-Motion system for video. It estimates camera poses, camera intrinsics and a sparse 3D map, and the README lists what it combines to get there: temporal tracks, loop closures, metric depth, and global optimization. The word offline matters. Nothing in the documented execution path streams frames or returns poses while a camera is still recording; you hand it a video file or a directory of extracted frames and it writes a reconstruction afterwards.
The intended user is someone with video in hand and a COLMAP-shaped problem. Aerial footage, a handheld walkthrough, a clip pulled from the web (the README ends with a nudge to try VidMap on videos from the web). Video gives a pipeline something photo collections do not: an ordering. Consecutive frames overlap heavily and stay in a known sequence, so correspondences can be carried forward as temporal tracks instead of being rediscovered pairwise. The README's own method figure describes the architecture as a video-aware frontend followed by provenance-aware global mapping. That is the design bet: keep the ordering information alive through the frontend and let the mapper use it.
It is not a photogrammetry product. There is no documented mesh export, no texturing stage, no dense point cloud in the README. The output is a COLMAP model, and the README says both mapping commands write the final COLMAP model under `$OUTPUT_DIR/rec`. If your downstream tooling already reads COLMAP output, that is the integration point.
Frontend, mapper inputs, and the COLMAP model at the end
The pipeline is split into two documented stages that communicate through a directory. The frontend consumes the video and produces what the README calls mapper inputs; mapping consumes those inputs and produces the reconstruction. Both stages are separate modules, `vidmap.frontend` and `vidmap.map`, and a combined `vidmap.run` exists for running them together.
Configuration is split along the same seam. Frontend configs control tracks, keyframes, depth and calibration, and mapping configs control global positioning and bundle adjustment. The README notes that frontend settings follow the pipeline itself: keyframe matching, selection and features are grouped together, while track matching and propagation form a separate stage. Both stages use Hydra and OmegaConf, and the resolved `frontend_config.yaml` and `mapping_config.yaml` are written directly under the output directory, so a run records the configuration it actually used rather than the one you think you passed.
Provenance is the interesting part of the mapping half. VidMap extends COLMAP's global mapping pipeline, and the README describes the extension as provenance-aware. Temporal tracks carry an origin that a pairwise match does not, and the mapper can weigh that. The README does not spell out the weighting in the text available here, so treat the phrase as a pointer to the paper rather than a specification. What is documented is the interface: mapper inputs in, COLMAP model out.
Installing VidMap: clone, build COLMAP 4.1, then pip install -e .
There is no pip install from PyPI in the README. Setup starts from a clean Python environment and a recursive clone, because the repository pulls pinned model dependencies:
git clone --recursive https://github.com/cvg/vidmap.git && cd vidmapBefore the Python package goes in, you build COLMAP 4.1 and its PyCOLMAP bindings from source. The README links to the COLMAP build instructions rather than restating them, and adds that GPU mapper acceleration requires building against Ceres 2.3 or newer with CUDA and cuDSS. This is the step that decides whether the rest of the install succeeds; a system COLMAP from a package manager is not what the README asks for.
With PyTorch and xFormers installed, the package itself is an editable install:
pip install -e .`pyproject.toml` shows what that pulls: numpy 1.26.4, scipy 1.15.3, opencv-python 4.11.0.86, pydantic 2.11.7, hydra-core 1.3.2, omegaconf 2.3.0, huggingface-hub 0.36.0, plus three git-pinned dependencies (PoseLib, LightGlue and GeoCalib at specific commits). It also declares `requires-python = ">=3.10"` and builds a native extension from `extensions/colmap` with scikit-build-core and CMake 3.28 or newer. Expect a compile, not a wheel download.
Budget for the first run, not the install. The README states that the first frontend run automatically downloads approximately 9 GB of model checkpoints.
A first run on the bundled example video
The repository includes a silent example video, which is the lowest-risk way to check that the native extension, the checkpoints and the mapper all work before you point VidMap at your own footage. The README's execution block sets three shell variables and runs the frontend, then mapping:
INPUT_DATA=./assets/example_video.mp4
OUTPUT_DIR=./example_output/
MAPPER_INPUTS="$OUTPUT_DIR/mapper_inputs"
python -m vidmap.frontend "$INPUT_DATA" \
--output "$OUTPUT_DIR"
python -m vidmap.map \
--mapper-inputs "$MAPPER_INPUTS" \
--output "$OUTPUT_DIR"After both commands finish, look in `$OUTPUT_DIR/rec` for the COLMAP model and directly under `$OUTPUT_DIR` for the resolved `frontend_config.yaml` and `mapping_config.yaml`. If you would rather not manage the intermediate directory, the README gives a single-command alternative:
python -m vidmap.run \
--input_data "$INPUT_DATA" \
--output "$OUTPUT_DIR"The README also notes that `--input_data` may point to a directory of extracted frames instead of a video file, which is the escape hatch when your footage needs trimming or resizing before it enters the pipeline.
To inspect the result, the browser viewer is the cheapest option: open `vidmap/visualization/vidmap-viewer.html` in a Chromium-based browser and choose a run folder containing `rec/` and `mapper_inputs/`. The README states the viewer requires internet access. For a reconstruction that opens without folder selection, `python -m vidmap.visualization.html --run-dir "$OUTPUT_DIR"` embeds it into `$OUTPUT_DIR/vidmap-viewer-embedded.html`. Rerun playback is optional and needs `pip install rerun-sdk`.
Where VidMap will cost you: the build, the checkpoints, the GPU
The install is the first real limitation, and it is not incidental. Building COLMAP 4.1 and PyCOLMAP from source, optionally against Ceres 2.3 or newer with CUDA and cuDSS, is a systems task that can consume an afternoon on its own. The README does not document a prebuilt wheel, a Docker image, or a conda package. If your environment cannot compile CMake projects with a CUDA toolchain, VidMap is the wrong tool regardless of reconstruction quality.
The tested configuration is narrow. The README states VidMap was last tested on Linux x86-64 with Python 3.10, COLMAP and PyCOLMAP 4.1, PyTorch 2.7.1, TorchVision 0.22.1 and xFormers 0.0.31 on NVIDIA GPUs. Windows and macOS are not mentioned. The NVIDIA qualifier is doing real work: xFormers and the CUDA/cuDSS path point at GPU execution, and no CPU-only fallback is described.
Storage and bandwidth are the third cost. Approximately 9 GB of checkpoints arrive on the first frontend run, which is awkward on a machine with a small home partition or a metered connection, and it is a per-environment download rather than a per-project one.
Finally, the README is silent on failure modes. There is no documented guidance on what happens when tracking fails on a video with fast motion, motion blur or rolling shutter, no rollback procedure, and no accuracy expectations for a given clip length. The example video is silent too, so you cannot judge audio-driven or speech-heavy footage from it. Treat the paper as the place where accuracy claims live, not the README.
VidMap against plain COLMAP: same mapper, different frontend
The honest comparison is COLMAP, because VidMap is built on it. COLMAP's documented workflow for video is to extract frames and treat them as an unordered image set, or to use its sequential matcher to exploit the ordering. VidMap keeps COLMAP's global mapper and replaces what feeds it: a video-aware frontend that produces temporal tracks, loop closures and metric depth, and a mapper that is aware of where those observations came from. The README describes VidMap as extending COLMAP's global mapping pipeline, and the repository carries `extensions/colmap` with its own CMake build, so the two are not independent codebases.
The practical difference for an adopter is the entry point. With COLMAP you tune matching and mapping yourself and own the frame extraction step. With VidMap the frontend is a module with typed Hydra configs, and the mapper inputs are a directory you can inspect between stages. The cost is that VidMap's frontend is opinionated and pinned to specific model dependencies at specific commits.
If your input is genuinely unordered photographs, VidMap's premise does not apply and COLMAP alone is the simpler answer. If your input is video and you want the ordering used rather than discarded, VidMap is the version of the pipeline built for that case.
Licence, third-party models, and what upgrading costs
VidMap is Apache-2.0. The repository's `pyproject.toml` lists licence files for three vendored third-party projects under `third_party/`: Depth-Anything-3, MegaLoc and RoMaV2. Those are separate licences from VidMap's own, and they are shipped in the wheel, so a redistribution of VidMap's built artifacts carries them along. The README does not state the licence terms of the downloaded checkpoints, and the checkpoint download happens at runtime rather than at install. Check the terms of each model you actually run; this is a description of what the repository contains, not legal advice.
Upgrade cost is dominated by the pinned dependencies rather than by VidMap's own code. `pyproject.toml` pins numpy to 1.26.4, scipy to 1.15.3, pydantic to 2.11.7, hydra-core to 1.3.2 and omegaconf to 2.3.0, and three dependencies (PoseLib, LightGlue, GeoCalib) are git URLs at fixed commits. Those pins buy reproducibility and cost flexibility: a project that needs a newer numpy in the same environment will have to resolve the conflict explicitly. The build backend, scikit-build-core, is constrained to a minor range, and the native extension requires CMake 3.28 or newer, so a toolchain upgrade can break the build even when the Python code is unchanged.
On maintenance, the last push to the default branch was on 2026-09-08, and the repository is not archived. The two most recent releases are asset drops from 2026-07-30: presentation assets v1 and dataset assets v2. That pattern is consistent with a research repository whose releases carry media and data rather than versioned software, so do not read a release tag as a software version you can pin to.
Editorial conclusion
Adopt VidMap if you already build COLMAP from source, have NVIDIA GPUs, and want camera poses and a sparse map from a video rather than from unordered photos; the repository ships a silent example video so you can validate the whole frontend-to-mapping path before touching your own footage. Skip it if you need a pip-only install, CPU-only inference, or a supported Python version other than 3.10, since the README states the last test was on Linux x86-64 with Python 3.10, COLMAP and PyCOLMAP 4.1, PyTorch 2.7.1, TorchVision 0.22.1 and xFormers 0.0.31 on NVIDIA GPUs. Verify first that COLMAP 4.1 and PyCOLMAP build against your Ceres version, because the README asks for Ceres 2.3 or newer with CUDA and cuDSS only for GPU mapper acceleration.
Frequently asked questions
How do I install VidMap?
Clone the repository recursively, build COLMAP 4.1 and its PyCOLMAP bindings from source, install PyTorch and xFormers, then run pip install -e . from the repository root. The README states the package was last tested on Linux x86-64 with Python 3.10, COLMAP and PyCOLMAP 4.1, PyTorch 2.7.1, TorchVision 0.22.1 and xFormers 0.0.31 on NVIDIA GPUs.
Does VidMap need a GPU?
The README only documents an NVIDIA GPU configuration, with GPU mapper acceleration requiring COLMAP and PyCOLMAP built against Ceres 2.3 or newer with CUDA and cuDSS. No CPU-only path is described.
Where does VidMap write the reconstruction?
Both mapping commands write the final COLMAP model under $OUTPUT_DIR/rec, and the resolved frontend_config.yaml and mapping_config.yaml are written directly under $OUTPUT_DIR. The browser viewer expects a run folder containing rec/ and mapper_inputs/.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/cvg-vidmap)Star history chart for your README
[](https://hysenlabs.com/projects/cvg-vidmap)Was this useful?