cvg / Hierarchical-Localization

Visual localization made easy with hloc
Apache License 2.0
3.12k stars 579 forks source link

About the reconstruction pipeline #385

Open Jemian2023 opened 5 months ago

Jemian2023 commented 5 months ago

Now I have a bunch of images and their internal parameters and their accurate poses. I want to use the Hloc pipeline, such as the pipeline of "disk+lightglue+netvlad". and then I use Pycolmap to perform 3D reconstruction to generate sparse 3D models. The coordinate system of the image and map points in the model must be consistent with the original image coordinate system. How can I do this? Thank you.

I guess if I can perform as:

options = {"num_threads": min(multiprocessing.cpu_count(), 16),  "fix_existing_images": true, **options}
pycolmap.incremental_mapping(database_path, image_dir, models_path, options=options)

Is this plan feasible? Looking forward to your reply!