Repository navigation
Tags
Tags
Mirror ONNX Runtime binaries in COLMAP release and upgrade to 1.32.0 (#… …5053) ## Problem The upstream repository `github.com/microsoft/onnxruntime`, including all of its release archives, now returns 404. Every fresh build with the default `ONNX_ENABLED=ON` / `FETCH_ONNX=ON` fails at configure time, because FetchContent can't download the archive. The `FETCH_ONNX=OFF` path through vcpkg is also broken: the vcpkg port builds from the same GitHub source tarball. ## Fix Fetch ONNX Runtime from COLMAP's own release [`deps-onnxruntime-v1.32.0`](https://github.com/colmap/colmap/releases/tag/deps-onnxruntime-v1.32.0). This also upgrades ONNX Runtime from 1.30.0 to 1.32.0, the latest stable release. The archives are repackaged from Microsoft's official NuGet packages. The binaries are unchanged, and the layout matches the former upstream archives (`include/`, `lib/` with versioned symlinks, `lib/cmake/onnxruntime/`), so the rest of the CMake logic didn't need to change. The release notes list the source packages, build commits and checksums. - CPU, macOS (CoreML) and Linux aarch64 binaries come from `Microsoft.ML.OnnxRuntime` on nuget.org. - The nuget.org GPU packages are built for **CUDA 13**. To keep our current CUDA 12 baseline (Docker image, `pycolmap-cuda12` wheels), the `gpu_cuda12` archives come from Microsoft's official `onnxruntime-cuda-12` feed instead. The CUDA 13 builds (and win-arm64) are archived in the release too, but this PR doesn't use them. Other changes in `cmake/FindDependencies.cmake`: - Windows builds without CUDA now use the 7.5 MB CPU archive instead of the 290 MB CUDA one. - `onnxruntime_providers_cuda.lib` is no longer installed. Recent NuGet packages don't ship it, and the CUDA execution provider DLL is loaded at runtime, so the import library isn't needed. - The headers, libraries and configs staged in `_deps/onnxruntime-build` are now staged again whenever the archive changes. Before, they were only staged when missing, so existing build directories and the CI FetchContent cache kept using the old version's binaries after a version bump. - The CMake config patching for `lib64` now applies whenever `CMAKE_INSTALL_LIBDIR != lib`, not only on Linux x64. - The extracted FetchContent source directory is no longer modified (`lib/cmake` used to be deleted from it), so staging again works. ## Testing Done locally on macOS arm64: - Every release asset downloaded again from GitHub and checked against its SHA-256. - A fresh configure downloads from the new release URL. Clean build with no warnings. - `ctest` ONNX-dependent tests all pass on 1.32.0: `anycalib`, `aliked`, `onnx_matchers`, `lightglue`, `flexglue`, `loma`, `extractor`, `matcher`, `util/onnx`. - Configure with `-DCMAKE_INSTALL_LIBDIR=lib64`: the configs are patched correctly. - Staging again: a stale stamp causes the staged files to be cleared and copied again; an unchanged stamp leaves them alone. Not tested locally: Linux, Windows, and the CUDA execution provider. Those rely on CI. CI runners have no GPUs, so the CUDA 12 provider is only checked for its library dependencies (`libcudart.so.12`, `cudart64_12.dll`). ## Additional CI fixes - **macOS app bundle** (`scripts/shell/build_mac_app.sh`): the prebuilt onnxruntime dylib is signed with Microsoft's Developer ID, and `macdeployqt`/`install_name_tool` invalidates that signature. On the CI runner (Xcode 16.4), ad-hoc re-signing then failed silently, because `codesign` errors were discarded. The script now strips existing signatures before ad-hoc signing and prints `codesign` errors. - **Auxiliary releases** (`.github/workflows/`): publishing `deps-onnxruntime-v1.32.0` triggered all release workflows. On success, the Docker workflow would have pushed `colmap/colmap:latest` and the PyCOLMAP workflow would have published wheels to PyPI, built from whatever commit the auxiliary tag points to. They all failed this time, because the tag commit still had the dead URLs. Build jobs now skip releases whose tags start with `deps-`, `models-` or `datasets-`, and `pypi-publish` explicitly never runs for them.
Mirror ONNX Runtime binaries in COLMAP release and upgrade to 1.32.0 (#… …5053) ## Problem The upstream repository `github.com/microsoft/onnxruntime`, including all of its release archives, now returns 404. Every fresh build with the default `ONNX_ENABLED=ON` / `FETCH_ONNX=ON` fails at configure time, because FetchContent can't download the archive. The `FETCH_ONNX=OFF` path through vcpkg is also broken: the vcpkg port builds from the same GitHub source tarball. ## Fix Fetch ONNX Runtime from COLMAP's own release [`deps-onnxruntime-v1.32.0`](https://github.com/colmap/colmap/releases/tag/deps-onnxruntime-v1.32.0). This also upgrades ONNX Runtime from 1.30.0 to 1.32.0, the latest stable release. The archives are repackaged from Microsoft's official NuGet packages. The binaries are unchanged, and the layout matches the former upstream archives (`include/`, `lib/` with versioned symlinks, `lib/cmake/onnxruntime/`), so the rest of the CMake logic didn't need to change. The release notes list the source packages, build commits and checksums. - CPU, macOS (CoreML) and Linux aarch64 binaries come from `Microsoft.ML.OnnxRuntime` on nuget.org. - The nuget.org GPU packages are built for **CUDA 13**. To keep our current CUDA 12 baseline (Docker image, `pycolmap-cuda12` wheels), the `gpu_cuda12` archives come from Microsoft's official `onnxruntime-cuda-12` feed instead. The CUDA 13 builds (and win-arm64) are archived in the release too, but this PR doesn't use them. Other changes in `cmake/FindDependencies.cmake`: - Windows builds without CUDA now use the 7.5 MB CPU archive instead of the 290 MB CUDA one. - `onnxruntime_providers_cuda.lib` is no longer installed. Recent NuGet packages don't ship it, and the CUDA execution provider DLL is loaded at runtime, so the import library isn't needed. - The headers, libraries and configs staged in `_deps/onnxruntime-build` are now staged again whenever the archive changes. Before, they were only staged when missing, so existing build directories and the CI FetchContent cache kept using the old version's binaries after a version bump. - The CMake config patching for `lib64` now applies whenever `CMAKE_INSTALL_LIBDIR != lib`, not only on Linux x64. - The extracted FetchContent source directory is no longer modified (`lib/cmake` used to be deleted from it), so staging again works. ## Testing Done locally on macOS arm64: - Every release asset downloaded again from GitHub and checked against its SHA-256. - A fresh configure downloads from the new release URL. Clean build with no warnings. - `ctest` ONNX-dependent tests all pass on 1.32.0: `anycalib`, `aliked`, `onnx_matchers`, `lightglue`, `flexglue`, `loma`, `extractor`, `matcher`, `util/onnx`. - Configure with `-DCMAKE_INSTALL_LIBDIR=lib64`: the configs are patched correctly. - Staging again: a stale stamp causes the staged files to be cleared and copied again; an unchanged stamp leaves them alone. Not tested locally: Linux, Windows, and the CUDA execution provider. Those rely on CI. CI runners have no GPUs, so the CUDA 12 provider is only checked for its library dependencies (`libcudart.so.12`, `cudart64_12.dll`). ## Additional CI fixes - **macOS app bundle** (`scripts/shell/build_mac_app.sh`): the prebuilt onnxruntime dylib is signed with Microsoft's Developer ID, and `macdeployqt`/`install_name_tool` invalidates that signature. On the CI runner (Xcode 16.4), ad-hoc re-signing then failed silently, because `codesign` errors were discarded. The script now strips existing signatures before ad-hoc signing and prints `codesign` errors. - **Auxiliary releases** (`.github/workflows/`): publishing `deps-onnxruntime-v1.32.0` triggered all release workflows. On success, the Docker workflow would have pushed `colmap/colmap:latest` and the PyCOLMAP workflow would have published wheels to PyPI, built from whatever commit the auxiliary tag points to. They all failed this time, because the tag commit still had the dead URLs. Build jobs now skip releases whose tags start with `deps-`, `models-` or `datasets-`, and `pypi-publish` explicitly never runs for them.
SfM: Update visibility on feature transitions (CPU perf) (#5006) ## Summary Update the visibility pyramid only when an image feature gains its first triangulated correspondence or loses its last. Extra supporting correspondences leave occupied cells unchanged, so repeating every pyramid-level update does unnecessary work. This is a small inherited optimization, based directly on official COLMAP 3c1a1b9. ## Changes - Move SetPoint/ResetPoint into the existing zero/one visibility transitions. - Extend the maintained score test with repeated support, distinct colliding features, partial/final removal and underflow checks. - Extend AddImage with observation removal and reconstruction of the manager, avoiding unrelated fork registration behavior. ## Background The update pattern dates to fe8f82a, "Initial commit" (2016), in src/base/image.cc. It was retained by eaebe3c, "Add ObservationManager (#2575)". ## Results The source-equivalent transition change was measured in a composed-fork fixed bookkeeping probe: Add64/Delete32/Delete32 on 16 images, 64 tracks and 120 pairs. | Platform | Before | After | | --- | ---: | ---: | | Linux/WSL | 1.395 ms | 0.640 ms | | Windows | 2.776 ms | 1.438 ms | Each table value is the arithmetic mean of four fresh process means per arm (ABBAABBA). Each process mean averages ten measured batches after two warmups. Canonical inputs and outputs agree within each platform. These are fixed bookkeeping timings, not reconstruction throughput measurements. ## Validation - Independent source review accepted the clean-base production change and adapted lifecycle fixture. - Clean base and candidate each passed all 15 maintained manager cases, without skips. - Configured clang-tidy-18 checked observation_manager.cc in both arms and the maintained test with no displayed source diagnostics; generated/header warnings were suppressed. - Reused retained pristine-upstream support and rebuilt the two selected consumers of newer RANSAC headers; final source, link and provider checks passed. - Separately, the composed-fork version passed 18 manager and two mapper cases on Linux and Windows. AI disclosure: Totally vibe coded
FlexGlue: bound concurrent GPU inferences with a semaphore (#4969) Stacked on #4957. ### Summary Decouples CPU image decoding/preprocessing parallelism (`FlexGlueMatchingOptions::num_workers_per_gpu`, $N$) from concurrent GPU model execution (`FlexGlueMatchingOptions::num_inferences_per_gpu`, $M$) in `FlexGlue`: - **`ONNXInferenceLimiter` (`util/onnx.{h,cc}`)**: Slot-assigning counting semaphore bounding concurrent GPU inferences across a larger pool of worker threads, paired with `OrtCUDAProviderOptionsV2` (`arena_extend_strategy=kSameAsRequested`, `use_ep_level_unified_stream=1`) and lazy per-slot CUDA `Ort::Session` replicas (`allow_session_replicas=false` on `FlexGlue`'s 344 MB dense descriptor so its weights are never duplicated). - **`FlexGlueMatchingOptions::num_inferences_per_gpu` (`feature/flexglue.{h,cc}`, CLI, `pycolmap`, docs)**: Bounds concurrent `descriptor_` + `matcher_` executions per CUDA GPU (default `num_workers_per_gpu = 4`, `num_inferences_per_gpu = 2`), and releases decoded full-resolution `Bitmap` buffers immediately after `ResizeBilinearToCHW` so workers waiting on the semaphore hold only the resized `512x512` input tensor (`~3 MB` instead of `72–150 MB`). ### Benchmark: $(N, M)$ Grid Search on `delivery_area` (44 images @ 24 MP, 946 pairs, NVIDIA A100-SXM4-40GB) #### `FLEXGLUE` (`K=2048` keypoints) | $N$ (`workers`) | $M$ (`inferences`) | Block ms/pair | Block speedup | Total ms/pair | GPU util | Mem BW | Mean / Peak Power | Peak VRAM | Matches | |---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | `1` | `1` | `42.94` | `1.00x` | `46.74` | `56.1%` | `9.5%` | `186 / 304 W` | `1,964 MiB` | `169,581` | | `3` | `1` | `32.99` | `1.30x` | `36.85` | `70.0%` | `12.2%` | `226 / 310 W` | `1,960 MiB` | `169,581` | | `6` | `1` | `30.84` | `1.39x` | `34.63` | `74.6%` | `13.0%` | `239 / 311 W` | `1,960 MiB` | `169,581` | | `2` | `2` | `29.61` | `1.45x` | `33.36` | `63.4%` | `17.3%` | `249 / 398 W` | `2,788 MiB` | `169,581` | | `4` | `2` | `25.46` | `1.69x` | `29.24` | `71.6%` | `19.7%` | `286 / 407 W` | `2,788 MiB` | `169,581` | | `3` | `3` | `26.86` | `1.60x` | `30.57` | `66.4%` | `22.2%` | `272 / 421 W` | `3,600 MiB` | `169,581` | | `6` | `3` | `24.40` | `1.76x` | `28.22` | `71.4%` | `24.2%` | `289 / 417 W` | `3,610 MiB` | `169,581` | | `8` | `3` | **`23.67`** | **`1.81x`** | **`27.40`** | `73.6%` | `24.7%` | `296 / 419 W` | `3,616 MiB` | `169,581` | | `4` | `4` | `26.34` | `1.63x` | `30.13` | `67.0%` | `25.0%` | `276 / 415 W` | `4,412 MiB` | `169,581` | | `8` | `4` | `24.17` | `1.78x` | `27.97` | `72.8%` | `26.3%` | `291 / 414 W` | `4,440 MiB` | `169,581` | | `6` | `6` | `27.09` | `1.59x` | `30.89` | `66.9%` | `25.8%` | `272 / 416 W` | `6,038 MiB` | `169,581` | | `8` | `8` | `27.89` | `1.54x` | `31.71` | `66.6%` | `24.5%` | `266 / 422 W` | `7,708 MiB` | `169,581` | | `12` | `12` | `29.23` | `1.47x` | `33.04` | `65.6%` | `20.6%` | `253 / 417 W` | `10,982 MiB` | `169,581` |
Release 4.2.1 (#4784) Backports 22 bugfixes from main onto the 4.2.0 release branch and bumps the version to 4.2.1. ## Backported fixes High impact: - #4773: Fix non-terminating ray casting in Delaunay meshing - #4776: Upgrade ONNX Runtime to 1.30.0 (LOMA matcher GPU memory leak) - #4673: Stop deriving the hash map backend from the build machine (fixes #4672) - #4754: Restore legacy bundle adjustment behavior in global mapper - #4775: Fix darkened 3D points in incremental mapping (merge colors) - #4678: Fix LO-RANSAC refinement below sample minimum - #4686: Fix CUDA overflow in rotate/transpose/flip kernels (fixes #3207) - #4692: Fix PoissonRecon endianness initialization - #4696 + #4702: Honor min_inlier_ratio; clear DEGENERATE geometries - #4753: Prefer reference sensor poses in rig-frame conversion Smaller fixes: - #4689: Download-cache directory creation race - #4679: Triangulator progress counter - #4749: Dropped THROW_CHECK messages + full-precision text streams - #4706/#4707/#4708/#4709: OpenMP guards, missing includes, init order, futures - #4710/#4712: pycolmap method chaining overrides - #4668: NumPy stub annotations - #4711: Panorama rendering workers Plus: version bump to 4.2.1 and changelog entry. ## Backport adaptations - #4696/#4702: ported onto the pre-refactor estimator (helpers from #4695 do not exist here); RANSAC-gate refactor verified behavior-preserving. - #4668/#4673/#4749: dropped hunks depending on excluded commits (#4665 annotations, #4741 CHECK_OPTION_IN); kept the functional changes. - #4754: use legacy `CeresBundleAdjustmentOptions::LossFunctionType` (pre-#4669 API). ## Test plan Built affected targets and ran suites locally (macOS arm64, Release): two_view_geometry, feature_matching_utils, database_cache, loransac, logging, string, delaunay_meshing, reconstruction, scene/sensor rig, global_mapper, option_manager, incremental/global pipeline - all pass, including the backported regression tests. --------- Co-authored-by: Shaohui Liu <b1ueber2y@gmail.com> Co-authored-by: maxfurni <max@m-six.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Paul-Edouard Sarlin <15985472+sarlinpe@users.noreply.github.com> Co-authored-by: Muse Code <muse-code@local> Co-authored-by: trueoneplusone <78432179+trueoneplusone@users.noreply.github.com> Co-authored-by: Attilla de Groot <attilla@packet.ninja> Co-authored-by: Dávid Komorowicz <dawars00@gmail.com>
Add distorted ETH3D variant to the benchmark (#4658) ## Overview Add distorted ETH3D images to the benchmark suite, providing coverage for focal-length prior evaluation and enabling future testing of view-graph calibration with lens distortion. ## Setup - Dataset: `eth3d:distorted` - Covisibility filtering: enabled - Calibrated camera model: `THIN_PRISM_FISHEYE` from ETH3D ground truth - Uncalibrated camera model: `SIMPLE_RADIAL`, `SIMPLE_RADIAL_FISHEYE`, `THIN_PRISM_FISHEYE`, initialized from the fallback focal estimate ## Overall Results ### Uncalibrated | Camera model | Mapper | AUC @ 0.5 / 1 / 5 / 10 deg | Registered | Components | |---|---|---:|---:|---:| | SIMPLE_RADIAL | Incremental | 16.13 / 36.47 / 76.28 / 86.04 | 890/898 | 26 | | SIMPLE_RADIAL | Global | 12.68 / 31.50 / 74.52 / 85.29 | 889/898 | 25 | | SIMPLE_RADIAL_FISHEYE | Incremental | 11.77 / 31.02 / 73.72 / 84.33 | 892/898 | 29 | | SIMPLE_RADIAL_FISHEYE | Global | 11.36 / 27.88 / 68.74 / 80.46 | 888/898 | 25 | | THIN_PRISM_FISHEYE | Incremental | 47.64 / 69.66 / 91.96 / 95.22 | 893/898 | 28 | | THIN_PRISM_FISHEYE | Global | 46.07 / 68.12 / 90.67 / 93.97 | 888/898 | 25 | ### GT-Calibrated | Camera model | Mapper | AUC @ 0.5 / 1 / 5 / 10 deg | Registered | Components | |---|---|---:|---:|---:| | THIN_PRISM_FISHEYE | Incremental | 72.43 / 84.34 / 95.49 / 97.08 | 893/898 | 28 | | THIN_PRISM_FISHEYE | Global | 74.78 / 86.12 / 96.81 / 98.32 | 894/898 | 25 | ## Per-Scene Results AUC columns are percentages at `0.5 / 1 / 5 / 10 deg`. Paired fields are shown as `uncalibrated / calibrated`. <details> <summary><strong>Incremental per-scene results</strong></summary> | Scene | Uncalibrated AUC | Calibrated AUC | Registered | Components | |---|---:|---:|---:|---:| | botanical_garden | 31.84 / 41.80 / 50.62 / 51.83 | 40.13 / 45.28 / 49.58 / 50.12 | 30/30 / 30/30 | 2 / 3 | | boulders | 57.66 / 77.00 / 95.25 / 97.63 | 68.22 / 83.76 / 96.72 / 98.36 | 26/26 / 26/26 | 1 / 1 | | bridge | 55.95 / 77.58 / 95.47 / 97.74 | 83.04 / 91.31 / 98.20 / 99.10 | 110/110 / 110/110 | 1 / 1 | | courtyard | 35.50 / 56.18 / 89.91 / 94.95 | 72.65 / 86.15 / 97.22 / 98.61 | 38/38 / 38/38 | 1 / 1 | | delivery_area | 48.49 / 71.36 / 93.95 / 96.98 | 82.80 / 91.37 / 98.27 / 99.14 | 44/44 / 44/44 | 1 / 1 | | door | 5.32 / 36.72 / 82.68 / 88.96 | 25.72 / 56.04 / 87.30 / 92.54 | 7/7 / 7/7 | 1 / 1 | | electro | 49.65 / 72.30 / 93.76 / 96.78 | 69.81 / 83.40 / 96.38 / 98.09 | 45/45 / 45/45 | 1 / 1 | | exhibition_hall | 48.40 / 71.94 / 93.71 / 96.81 | 56.21 / 75.52 / 93.83 / 96.65 | 68/68 / 68/68 | 1 / 2 | | facade | 56.14 / 75.28 / 94.58 / 97.29 | 81.94 / 90.75 / 98.14 / 99.07 | 76/76 / 76/76 | 1 / 1 | | kicker | 28.08 / 51.25 / 82.42 / 87.71 | 78.82 / 85.91 / 92.01 / 92.78 | 30/31 / 30/31 | 1 / 1 | | lecture_room | 43.29 / 63.41 / 90.04 / 94.75 | 71.21 / 83.55 / 96.39 / 98.20 | 23/23 / 23/23 | 1 / 1 | | living_room | 50.08 / 72.35 / 93.74 / 96.83 | 76.99 / 87.84 / 97.41 / 98.71 | 65/65 / 65/65 | 1 / 1 | | lounge | 17.76 / 25.55 / 31.78 / 32.56 | 23.96 / 28.64 / 32.40 / 32.86 | 6/10 / 6/10 | 1 / 1 | | meadow | 18.36 / 30.39 / 47.30 / 55.73 | 56.08 / 69.77 / 92.34 / 96.17 | 15/15 / 15/15 | 1 / 1 | | observatory | 27.76 / 53.91 / 89.41 / 94.70 | 39.71 / 59.79 / 90.30 / 95.15 | 27/27 / 27/27 | 1 / 1 | | office | 17.45 / 32.70 / 71.31 / 83.69 | 32.56 / 49.48 / 83.34 / 91.42 | 26/26 / 26/26 | 2 / 1 | | old_computer | 26.23 / 51.29 / 88.19 / 94.00 | 51.43 / 72.49 / 93.90 / 96.94 | 54/54 / 54/54 | 1 / 1 | | pipes | 26.42 / 55.89 / 89.98 / 94.99 | 66.61 / 82.59 / 96.52 / 98.26 | 14/14 / 14/14 | 1 / 1 | | playground | 53.70 / 75.06 / 93.72 / 96.17 | 72.47 / 86.00 / 97.14 / 98.57 | 38/38 / 38/38 | 2 / 1 | | relief | 40.16 / 69.13 / 93.79 / 96.90 | 86.30 / 92.94 / 98.58 / 99.29 | 31/31 / 31/31 | 1 / 1 | | relief_2 | 43.86 / 71.52 / 94.26 / 97.13 | 87.17 / 93.48 / 98.70 / 99.35 | 31/31 / 31/31 | 1 / 1 | | statue | 36.15 / 65.57 / 93.11 / 96.56 | 96.67 / 98.34 / 99.67 / 99.83 | 11/11 / 11/11 | 1 / 1 | | terrace | 53.61 / 76.71 / 95.34 / 97.67 | 74.05 / 86.62 / 97.31 / 98.66 | 23/23 / 23/23 | 1 / 1 | | terrace_2 | 56.69 / 75.05 / 94.45 / 97.22 | 72.35 / 84.07 / 96.46 / 98.23 | 13/13 / 13/13 | 1 / 1 | | terrains | 40.50 / 66.91 / 92.78 / 96.30 | 58.99 / 78.22 / 95.43 / 97.69 | 42/42 / 42/42 | 1 / 1 | </details> <details> <summary><strong>Global per-scene results</strong></summary> | Scene | Uncalibrated AUC | Calibrated AUC | Registered | Components | |---|---:|---:|---:|---:| | botanical_garden | 29.31 / 38.59 / 46.88 / 48.12 | 79.04 / 88.64 / 97.66 / 98.83 | 30/30 / 30/30 | 1 / 1 | | boulders | 53.53 / 71.07 / 87.81 / 90.06 | 75.81 / 87.54 / 97.49 / 98.74 | 26/26 / 26/26 | 1 / 1 | | bridge | 55.23 / 77.28 / 95.44 / 97.72 | 82.92 / 91.23 / 98.17 / 99.09 | 110/110 / 110/110 | 1 / 1 | | courtyard | 32.18 / 52.32 / 88.51 / 94.26 | 74.43 / 86.99 / 97.39 / 98.69 | 38/38 / 38/38 | 1 / 1 | | delivery_area | 43.89 / 67.59 / 93.07 / 96.53 | 82.80 / 91.37 / 98.27 / 99.14 | 44/44 / 44/44 | 1 / 1 | | door | 44.90 / 70.07 / 92.35 / 96.17 | 89.50 / 92.37 / 98.50 / 99.25 | 7/7 / 7/7 | 1 / 1 | | electro | 42.33 / 62.06 / 82.59 / 86.70 | 78.40 / 86.27 / 96.15 / 97.92 | 45/45 / 45/45 | 1 / 1 | | exhibition_hall | 49.15 / 72.50 / 93.94 / 96.92 | 57.07 / 76.27 / 94.40 / 97.15 | 68/68 / 68/68 | 1 / 1 | | facade | 51.82 / 71.44 / 91.62 / 94.48 | 82.17 / 90.82 / 98.15 / 99.08 | 75/76 / 76/76 | 1 / 1 | | kicker | 29.27 / 52.45 / 82.88 / 88.79 | 82.87 / 88.20 / 97.40 / 98.70 | 31/31 / 31/31 | 1 / 1 | | lecture_room | 39.31 / 58.62 / 87.82 / 93.40 | 72.99 / 84.97 / 96.82 / 98.41 | 23/23 / 23/23 | 1 / 1 | | living_room | 49.80 / 72.25 / 93.72 / 96.85 | 76.86 / 87.59 / 97.34 / 98.67 | 65/65 / 65/65 | 1 / 1 | | lounge | 25.71 / 29.52 / 32.57 / 32.95 | 29.63 / 31.48 / 32.96 / 33.15 | 6/10 / 6/10 | 1 / 1 | | meadow | 4.63 / 11.62 / 32.18 / 37.35 | 51.67 / 68.61 / 93.08 / 96.54 | 10/15 / 15/15 | 1 / 1 | | observatory | 30.44 / 57.67 / 90.71 / 95.36 | 41.61 / 61.58 / 90.93 / 95.46 | 27/27 / 27/27 | 1 / 1 | | office | 16.60 / 36.57 / 80.77 / 90.24 | 37.06 / 53.57 / 85.88 / 92.74 | 26/26 / 26/26 | 1 / 1 | | old_computer | 26.38 / 51.38 / 88.26 / 94.03 | 61.51 / 79.10 / 95.59 / 97.79 | 54/54 / 54/54 | 1 / 1 | | pipes | 26.04 / 54.66 / 89.00 / 94.54 | 77.18 / 88.55 / 97.71 / 98.85 | 14/14 / 14/14 | 1 / 1 | | playground | 49.26 / 70.85 / 89.78 / 92.29 | 68.98 / 84.05 / 96.68 / 98.33 | 38/38 / 38/38 | 1 / 1 | | relief | 40.80 / 69.71 / 93.91 / 96.95 | 84.05 / 91.76 / 98.35 / 99.17 | 31/31 / 31/31 | 1 / 1 | | relief_2 | 43.76 / 71.52 / 94.30 / 97.15 | 84.90 / 92.26 / 98.44 / 99.22 | 31/31 / 31/31 | 1 / 1 | | statue | 34.55 / 64.21 / 92.84 / 96.42 | 97.40 / 98.70 / 99.74 / 99.87 | 11/11 / 11/11 | 1 / 1 | | terrace | 48.18 / 73.99 / 94.80 / 97.40 | 80.36 / 90.13 / 98.03 / 99.01 | 23/23 / 23/23 | 1 / 1 | | terrace_2 | 69.13 / 83.33 / 96.51 / 98.26 | 74.90 / 85.85 / 96.96 / 98.48 | 13/13 / 13/13 | 1 / 1 | | terrains | 39.57 / 64.33 / 88.47 / 91.77 | 62.64 / 80.59 / 95.94 / 97.95 | 42/42 / 42/42 | 1 / 1 | </details> ## Deltas Values are uncalibrated `THIN_PRISM_FISHEYE` minus the named baseline. | Mapper | Baseline | AUC delta @ 0.5 / 1 / 5 / 10 deg | Registered | Components | |---|---:|---:|---:|---:| | Incremental | SIMPLE_RADIAL | +31.51 / +33.19 / +15.69 / +9.18 | +3 | +2 | +4 | | Incremental | SIMPLE_RADIAL_FISHEYE | +35.86 / +38.64 / +18.24 / +10.90 | +1 | -1 | +2 | | Incremental | GT THIN_PRISM_FISHEYE | -24.80 / -14.67 / -3.53 / -1.85 | 0 | 0 | 0 | | Global | SIMPLE_RADIAL | +33.40 / +36.61 / +16.14 / +8.68 | -1 | 0 | -1 | | Global | SIMPLE_RADIAL_FISHEYE | +34.71 / +40.23 / +21.93 / +13.50 | 0 | 0 | 0 | | Global | GT THIN_PRISM_FISHEYE | -28.71 / -18.00 / -6.14 / -4.35 | -6 | 0 | -6 | Incremental exceeded global by `+1.56 / +1.55 / +1.30 / +1.26` AUC and registered five more images. Global retained one component per scene and seven more images in the sum of largest components. --------- Co-authored-by: Shaohui Liu <b1ueber2y@gmail.com>
Set version to 4.2.0 (#4666) Update the COLMAP release version from `4.2.0.dev0` to `4.2.0` in: - CMake project metadata - Python package metadata - Sphinx documentation metadata Validation: - `PYENV_VERSION=colmap scripts/format/python.sh` - verified no `4.2.0.dev0` references remain - validated the `pyproject.toml` version as `4.2.0`
Integrate 6pt one-side focal solver in two view geometry estimation. (#… …4561) Integrate 6pt solver (9 solutions) from PoseLib with colmap TinySolver as LO. As a byproduct, this PR resolves pending TODO for two-view geometry between a spherical camera and an uncalibrated perspective camera. cc: @vlarsson ## (Edit: July 22, 2026) E2E reconstruction (ETH3D dslr, 10 scenes x 3 seeds, --camera_prior_fraction 0.5) `onesided - main`, AUC mean ± std over 3 seeds, averaged over scenes. Positive = branch better. Here we create a mixed calibration setup and only provide half the cameras intrinsics. | | @0.5 | @1.0 | @5.0 | @10.0 | |---|---|---|---|---| | **onesided - main** | +0.06 ± 2.07 | +0.08 ± 3.65 | +1.88 ± 3.14 | +1.80 ± 2.95 | ## Two-view relative pose AUC (272 mixed-calibration pairs, 4 scenes) Error is `max(R_err, t_err)` per pair. | | @1° | @3° | @5° | @10° | |---|---|---|---|---| | main (F) | 0.7 | 3.0 | 6.2 | 12.5 | | **one-sided** | **38.3** | **53.2** | **59.8** | **68.6** |
Prepare 4.1.1 patch release (#4554) Prepares the **4.1.1** patch release by cherry-picking important bug/build fixes that landed on `main` since `4.1.0`, plus one previously-unmerged fix. Features, refactors, algorithm changes, benchmarks, docs-site infra, and dependency upgrades from `main` are intentionally excluded. ### Included fixes **Bug / correctness** - Fix feature matching slowdown from process-global omp critical in RANSAC (#4553) — restores the ~4–6x matching perf regressed in 4.1.0 - Fix: rescale already-undistorted images when `max_image_size` is provided (#4512) - Load mapper database lazily instead of at GUI startup (#4501) *(see note below)* - Show image/point viewer metadata when images are missing on disk (#4546) **Build / packaging** - Fix missing SVG icons in Windows binaries (#4496) - Fix Caspar CUDA build with MSVC forced includes (#4481) - Fail Caspar build early on CUDA arch < 7.0 (#4495) - Fix glog color support version detection (#4479) **GUI** - Tint UI icons to palette for dark theme legibility (#4478) **Docs** - Document quaternion order (wxyz vs xyzw) in `read_rig_config` binding (#4526) - Fix stale usage example in `IncrementalMapper` doc comment (#4531) - Add Fedora build instructions to `install.rst` (#4509) - Fix typos in user-facing help string and FAQ (#4549) **Previously unmerged** - Fix misspelled pycolmap enum name `GPSTransfromEllipsoid` → `GPSTransformEllipsoid` (#4551) ###⚠️ Breaking change #4551 removes `pycolmap.GPSTransfromEllipsoid` (present since ≤4.1.0) with **no** backward-compatible alias. Downstream code must switch to `pycolmap.GPSTransformEllipsoid`. This is unusual for a patch release and must be highlighted in the 4.1.1 release notes. ### Notes - #4501 required a manual conflict resolution: it was authored on top of the GUI mapper-selection feature (#4487), which is **not** part of this patch. The dependency on `UpdateMapperControls()` / `mapper_type_` was removed and replaced with the 4.1.0 baseline's existing control-state handling; the net behavior (no database read at GUI startup / project reset) is preserved. - All other commits cherry-picked cleanly (`-x` references retained). ### Still TODO before tagging - [ ] Version bump to 4.1.1 - [ ] CHANGELOG entry (incl. the breaking-change callout) - [ ] Full build + test run across platforms (CI) --------- Co-authored-by: WhuAegeanSea <whuaegeansea@gmail.com> Co-authored-by: Shaohui Liu <b1ueber2y@gmail.com> Co-authored-by: Behnam Asadi <behnam.asadi@gmail.com> Co-authored-by: Mohammad Ali <m.aliadnanrauf@gmail.com>
PreviousNext