Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run pipeline with sequential mode. #58

Open
DubovitskyDenis opened this issue Nov 17, 2022 · 5 comments
Open

Can't run pipeline with sequential mode. #58

DubovitskyDenis opened this issue Nov 17, 2022 · 5 comments

Comments

@DubovitskyDenis
Copy link

image
I have database, which I got after colmap reconstruction(from original colmap). What could have gone wrong?

@DubovitskyDenis DubovitskyDenis changed the title Cant run pipeline with sequential mode. Can't run pipeline with sequential mode. Nov 17, 2022
@AIBluefisher
Copy link
Owner

How do you build the database, by COLMAP or by DAGSfM? Since DAGSfM stores relative camera poses instead of the essential/fundamental/homography matrices, the database built by COLMAP is not compatible with DAGSfM.

@DubovitskyDenis
Copy link
Author

DubovitskyDenis commented Nov 17, 2022

I built the database by COLMAP. Now I see, that it was a bad idea.
What should I do to run DAGSfM correctly? Should I run 'extract_feature.in' and 'exhaustive_matcher.in' after that?

@AIBluefisher
Copy link
Owner

AIBluefisher commented Nov 17, 2022

The relative poses are obtained during feature matching. All you need to do is to rebuild a database. Actually, you can follow the pipeline in this script but replace colmap's original mapper at lines 34-39 with the distributed mapper.

@DubovitskyDenis
Copy link
Author

Hello again!
I have a problem when starting colmap distributed_mapper command. I created database by DAFSfM. The third command from the script started working and continued to carry out the reconstruction, but at some point an error occurred.
It's hard for me to understand what could be the problem.

image

@AIBluefisher AIBluefisher reopened this Nov 24, 2022
@AIBluefisher
Copy link
Owner

AIBluefisher commented Nov 24, 2022

I'm not sure what causes the crash. You may need to debug that piece of code. But you can simply set retriangulate to false to avoid re-triangulation after merging:

  if (options_.retriangulate) {
    LOG(INFO) << "Triangulating for separators...";
    timer.Start();
    Triangulate();
    timer.Pause();
    triangulate_time = timer.ElapsedSeconds();
  }

Then, you can rerun the sfm_aligner to merge all the partitions. The command can be like:

colmap sfm_aligner --reconstructions_path {YOUR_PARTITION_PATH}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants