A guide to running COLMAP for structure-from-motion (SfM) and multi-view stereo (MVS).
Tested on: COLMAP 3.13 (CUDA, ceres-solver cuDSS).
Reference: https://colmap.github.io/
| # syntax=docker/dockerfile:1.7 | |
| ARG NVIDIA_CUDA_VERSION=13.1.1 | |
| ARG UBUNTU_VERSION=24.04 | |
| # ---------------------------- | |
| # Builder | |
| # ---------------------------- | |
| FROM nvidia/cuda:${NVIDIA_CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION} AS builder |
| # syntax=docker/dockerfile:1.7 | |
| ARG TORCH_IMAGE_TAG=2.10.0-cuda13.0-cudnn9 | |
| # --- Builder --- | |
| FROM pytorch/pytorch:${TORCH_IMAGE_TAG}-devel AS builder | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PIP_BREAK_SYSTEM_PACKAGES=1 \ | |
| PIP_ROOT_USER_ACTION=ignore \ |
A guide to running COLMAP for structure-from-motion (SfM) and multi-view stereo (MVS).
Tested on: COLMAP 3.13 (CUDA, ceres-solver cuDSS).
Reference: https://colmap.github.io/
| #!/usr/bin/env python3 | |
| from __future__ import annotations | |
| import argparse | |
| import math | |
| from pathlib import Path | |
| from typing import List, Tuple | |
| import numpy as np | |
| from PIL import Image |
| """ | |
| COLMAP converter | |
| - exhaustive matcher | |
| - GPU auto-detection | |
| Tested against: | |
| COLMAP 3.13.0 (CUDA) | |
| """ | |
| from __future__ import annotations |