File size: 2,716 Bytes
166007a | 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 | # COLMAP Config
Trimmed from `colmap_default.yaml`. Same YAML format as the original β copy the block
below into a `.yaml` file to use it.
Removed on purpose: experiment block, all feature extraction/matching detail except the
GPU switches, all input/output path blocks, Hydra settings. Paths must now be supplied
by the caller (CLI override, or a wrapper config) β this file alone is not runnable.
```yaml
# ββ Pipeline flags ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
random_seed: 0
# ββ Stage toggles (can also be driven by pipeline.yaml) βββββββββββββββββββββββ
run:
colmap_feat_extract_match: true
colmap_reconstruct: true
# ββ Feature extraction / matching βββββββββββββββββββββββββββββββββββββββββββββ
# GPU instead of CPU. All other extraction/matching options dropped -> COLMAP defaults.
feat_extract_match:
extraction:
device: cuda
matching:
use_gpu: true
# ββ Reconstruction ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Priors are loaded as a STARTING POINT only, not frozen: COLMAP refines both poses
# and intrinsics during bundle adjustment and may move them away from the priors.
reconstruction:
mode: automatic # triangulate | automatic
load_prior_poses: true # automatic mode only: seed with known robot poses
load_prior_intrinsics: true # seed with known camera intrinsics
refine_intrinsics: true # keep true -> intrinsics stay free, not locked to prior
mapping_params:
min_focal_length_ratio: 0.1
max_focal_length_ratio: 10.0
max_extra_param: .inf
ba_local_max_num_iterations: 30
ba_local_max_refinements: 3
ba_global_max_num_iterations: 75
num_threads: 1
```
## Notes for whoever runs this
- **`mode: automatic` is required for the pose priors.** `load_prior_poses` is
ignored in `triangulate` mode, per the original comment. Changing `mode` silently
drops the pose priors.
- **"Don't freeze" is `refine_intrinsics: true`.** Setting it to `false` pins intrinsics
to the prior values, which is the opposite of what this config is for.
- **`ba_use_gpu` is deliberately absent** from `mapping_params` β bundle adjustment is left
to whatever the implementation defaults to. Only feature extraction and matching are
pinned to GPU. Do not add a `ba_use_gpu` key back in.
|