-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Describe the bug
After installing colmap from source and subsequently installing pycolmap from source using
python -m pip install .
the pycolmap IncrementalMapperOptions does not have access to numerous variables that I expected it to have access too.
This problem appears to have been solved in the standalone pycolmap repo here, as mentioned in this issue. However it's not clear to me how to similarly solve it in the colmap repo's pycolmap implementation.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/colmap/colmap.git
cd colmap
git fetch && git checkout 0ed7a41
mkdir build
cmake .. -GNinja
ninja -j 5
ninja install
cd pycolmap
python -m pip install .
And then run python, import pycolmap and try to use the multiple_models attribute:
python
import pycolmap
pycolmap.IncrementalMapperOptions(multiple_models=1, max_num_models=1, multiple_models=1, min_num_matches=6, local_ba_num_images=6, ba_refine_focal_length=1,)
Expected behavior
I expected that it should have access to max_num_models, multiple_models, etc.
Error Message
The relevant portion of my error message is shown below.
options = pycolmap.IncrementalMapperOptions(
AttributeError: 'pycolmap.IncrementalMapperOptions' object has no attribute 'multiple_models'
Environment:
- OS: Ubuntu 22.04
- COLMAP Version 0ed7a41